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 3 of 5: Small exponent case and conclusion
ar≤100⟹cn≤20+21+⋯+2100=na_r\le100\Longrightarrow cn\le2^0+2^1+\cdots+2^{100}=n
Detailed analysis

If instead ar≤100a_r\le100, the binary expansion uses at most 100100 powers selected from {20,21,…,2100}\{2^0,2^1,\ldots,2^{100}\}. Hence cn≤20+21+⋯+2100=ncn\le2^0+2^1+\cdots+2^{100}=n. Since cncn is a positive multiple of nn, equality would force c=1c=1 and would require all 101101 powers 20,…,21002^0,\ldots,2^{100} to occur, impossible for a representation with at most 100100 powers. This contradiction shows that no positive multiple of n=2101−1n=2^{101}-1 is fancy, and together with the lower bound proves that this is the smallest such integer.