Let $a$ be an odd integer. Show that the congruence $x^2 \equiv a \pmod {2^e}$, where $e$ is an integer, $e \geq 3$, has either no solutions or exactly 4 incongruent solutions.
-
http://math.stackexchange.com/questions/556434/show-that-x2-equiv-a-pmod-2n-has-a-solution-where-a-equiv1-pmod-8-and?rq=1 and http://math.stackexchange.com/questions/25128/prove-that-x2-equiv-1-pmod2k-has-exactly-four-solution-incongruent-sol – lab bhattacharjee Jan 05 '14 at 16:15
1 Answers
If $x^2\equiv a\pmod{2^e}$ the also $x^2\equiv a\pmod{8}$. A square is odd iff the number itself is odd, and the square of an odd number is always $\equiv1\pmod 8$. Therefore, there is no solution if $a\not\equiv 1\pmod 8$. On the other hand, if $a\equiv 1\pmod 8$ there are exactly four solutions. This can be shown by induction on $e$. Indeed, if $e=3$, then $1,3,5,7\bmod 8$ are the four soulutions. Assume we have exactly four soulutions $x_1, x_2, x_3, x_4$ modulo $2^e$. Then there are at most eight solutions modulo $2^{e+1}$, namely $x_1, x_2, x_3, x_4, x_1+2^e, x_2+2^e, x_3+2^e, x_4+2^e$. But $$(x_i+2^e)^2=x_i^2+2^{e+1}x_i+2^{2e}\equiv x_i^2+2^{e+1}\pmod{2^{e+1}}$$ because $x_i$ is odd, so that of each pair $x_i, x_i+2^e$ there is at most one solution modulo $2^{e+1}$. On the other hand, $x_i^2\equiv a\pmod {2^e}$ implies that $x_i^2\equiv a\pmod {2^{e+1}}$ or $x_i^2\equiv a+2^e\pmod {2^{e+1}}$ so that eihter $x_i$ or $x_i+e^2$ gives us a solution modulo $2^{e+1}$.
- 374,180
-
1Why are there at most $8$ solutions? How does your argument show that only one of each pair is a solution? – chubakueno Jan 05 '14 at 19:50
-
2It looks to me that it shows that if $x$ is a solution, then so is $x+2^e$ – chubakueno Jan 05 '14 at 20:04