HMMT 十一月 2023 · 冲刺赛 · 第 26 题
HMMT November 2023 — Guts Round — Problem 26
题目详情
英文原题
- [13] Compute the smallest multiple of 63 with an odd number of ones in its base two representation.
解析
英文解析
- [13] Compute the smallest multiple of 63 with an odd number of ones in its base two representation.
Proposed by: Holden Mui
Answer: 4221
Solution: Notice that 63 = 2 − 1 , so for any a we know 6
63 a = 64 a − a = 2 ( a − 1) + (64 − a ) .6
As long as a ≤ 64 , we know a − 1 and 64 − a are both integers between 0 and 63 , so the binaryrepresentation of 63 a is just a − 1 followed by 64 − a in binary (where we append leading 0 s to makethe latter 6 digits).
Furthermore, a − 1 and 64 − a sum to 63 = 111111 , so a − 1 has 1 s in binary where 64 − a has 0 s,
and vice versa. Thus, together, they have six 1 s, so 63 a will always have six 1 s in binary when a ≤ 64 .2
We can also check 63 · 65 = 2 − 1 has twelve 1 s, while 63 · 66 = 2(63 · 33) has the same binary 12
representation with an extra 0 at the end, so it also has six 1 s. Finally,
63 · 67 = 2 + 125 = 100000111110112
has seven 1 s, so the answer is 63 · 67 = 4221 .2