Let $n$ be an integer, $n > 0$. Prove that all the coefficients of the expansion of the Newtonian binomial $(a+b)^n$ are odd if and only if $n$ is of the form $2^k-1$.
Why in the solution below do they take $n > 8$? Also, I don't get the middle paragraph argument about $n_1$. What do those values represent using $n_1$?
Solution:
For $n \leq 8$ the theorem is immediately verifiable. It is therefore sufficient to assume that the theorem is true for the binomials $a+b,(a+b)^2,\ldots,(a+b)^{n-1}$ for $n > 8$, and prove that the theorem holds for $(a+b)^n$. The coefficients of the binomial expansion (except for the extreme ones both equal to $1$) are $$\dfrac{n}{1}, \dfrac{n(n-1)}{1 \cdot 2},\ldots,\dfrac{n(n-1) \cdots 1}{1 \cdot 2 \cdots (n-1)}.$$ A necessary and sufficient condition in order that all these numbers be odd is that $n$ is odd and the numbers obtained by deleting the odd factors from the numerators and denominators of the remaining numbers be odd.
But setting $n = 2n_1+1$ these numbers can be represented by the terms of the sequence $$\dfrac{n_1}{1},\dfrac{n_1(n_1-1)}{1 \cdot 2}, \ldots, \dfrac{n_1(n_1-1) \cdots 1}{1 \cdot 2 \cdots (n_1-1)}.$$ Since $n_1 < n$, the latter are all odd if and only if $n_1$ is of the form $2^k-1$, i.e. if and only if $n$ is of the form $2(2^k-1)+1 = 2^{k+1}-1$.