MathLabs

Problem 2

A positive integer is called fancy if it can be expressed in the form 2a1+2a2+⋯+2a1002^{a_1}+2^{a_2}+\cdots+2^{a_{100}}, where a1,a2,…,a100a_1,a_2,\ldots,a_{100} are non-negative integers that are not necessarily distinct. Find the smallest positive integer nn such that no multiple of nn is a fancy number.
Step 2 of 5: Every smaller kk has a fancy multiple
2sk=2a1+s+⋯+2ar+s,s=100−r;2j=2j−1+2j−1 increases the number of powers by one2^s k=2^{a_1+s}+\cdots+2^{a_r+s},\quad s=100-r;\quad 2^j=2^{j-1}+2^{j-1}\text{ increases the number of powers by one}
Detailed analysis

First multiply the binary expansion of kk by 2s2^s, where s=100−rs=100-r. If s=0s=0, this already is a sum of exactly 100100 powers of two. If s>0s>0, repeatedly split one term by 2j=2j−1+2j−12^j=2^{j-1}+2^{j-1}, choosing a term with positive exponent at each split; starting from the term 2ar+s2^{a_r+s}, this can be done ss times and increases the number of summands from rr to r+s=100r+s=100 without changing the value. Thus kk has a fancy multiple, so the smallest nn with no fancy multiple must satisfy n≥2101−1n\ge2^{101}-1.