Why is $$ \sum_{n=1}^{\infty} x^{2n^2} +\sum_{n=1}^{\infty} x^{8n^2} + \sum_{n=1}^{\infty} x^{32n^2}+\cdots = \sum_{n=1}^{\infty}(t(n)+1) x^{2n^2} $$ Where $t(n)$ is the highest power of 2 which divides $n$
My attempt : list $t(n)$ first and make the $t(n)$ table from $1\leq n \leq 20$. And the last, i know the summantion of $x^{2n^2},x^{8n^2},\cdots$ will be equal to summantion $(t(n)+1) x^{2n^2}$ . but my teacher forbids using that method. Can you help me for to find another way?