I found the following problem in a book with advanced math problems for 6th grade that I cannot solve:
All the numbers from $11111$ to $99999$ are written in a random order, one after another, thus forming a single number with $444445$ digits. Prove that regardless what the resulting number is, it cannot be a power of $2$.
I tried various things but could not find any solution.
One of my ideas was to determine the sum of all its digits. 11111 & 99999 = 1+1+1+1+1 + 9+9+9+9+9 = 50 11112 & 99998 = 1+1+1+1+2 + 9+9+9+9+8 = 50 ... 55555 = 25
So we have 44444 pairs whose sum of digits is 50 and un unpaired number, 55555 whose sum of digits is 25.
Therefore, the sum of all the digits is 44444 * 50 + 25 = 2222225.
However, I don't know how to prove that no power of 2 has the sum of its digits equal to 2222225.
Any help is appreciate.
Observe that $10 ^5 - 1 = 99999 = 9 \times 11111$.
Hint: Show that the resulting number is a multiple of $11111$, hence is not a power of 2.
Phrased in modular arithmetic, there is an easy proof (just work through it). The difficulty is expressing that to a 6th grader (and expecting them to come up with it).
This also explains why trying modulo $3$ or $9$ didn't immediately work. However, if we added in the terms $10000$ to $11110$, then mod 3 would work. This version would have been a great question for a 6th grader.
This generalizes as follows: The concatenation of terms from $\frac{10^n - 1} { 9} $ to $10^n - 1$ in any order is a multiple of $ \frac{10^n-1}{9}$, hence never a power of 2.