Problem 911: (2020 AMC 10a, 21; 2020 AMC 12a, 19)
There exists a unique strictly increasing sequence of nonnegative integers $a_1 < a_2 < \cdots < a_k$ such that\[\frac{2^{289}+1}{2^{17}+1} = 2^{a_1} + 2^{a_2} + \cdots + 2^{a_k}.\]What is $k?
$ $\textbf{(A)}\ 117 \qquad \textbf{(B)}\ 136 \qquad \textbf{(C)}\ 137 \qquad \textbf{(D)}\ 273 \qquad \textbf{(E)}\ 306$
- Let $x=2^{17}$. Then $\dfrac{2^{289}+1}{2^{17}+1}=\dfrac{x^{17}+1}{x+1}=x^{16}-x^{15}+x^{14}-\cdots-x+1$.
- Group in pairs: $(x^{16}-x^{15})+(x^{14}-x^{13})+\cdots+(x^2-x)+1$. Each pair is $x^{2i-1}(x-1)=2^{17(2i-1)}(2^{17}-1)$ for $i=1,\dots,8$.
- $2^{17}-1$ is $17$ ones in binary, so $2^{17(2i-1)}(2^{17}-1)$ is a block of $17$ ones in positions $17(2i-1)$ to $17(2i-1)+16$. These $8$ blocks do not overlap, and the final $1$ is in position $0$.
- So $k=8\cdot17+1=137$.
- The answer is (C).
How many $1$s are there in the binary representation of $\dfrac{2^{63}+1}{2^{9}+1}$?