[Math] If $a$ is a quadratic residue modulo $p^n$ where $p$ is a prime, then $a$ is a quadratic residue modulo $p^{n+1}$

number theoryquadratic-residues

Prove that if $a$ where $0 \leq a < p^n$ is a quadratic residue modulo $p^n$ where $p$ is a prime, then $a$ is a quadratic residue modulo $p^{n+1}$.

I thought about trying to construct the residues from previous residues. For example, modulo $2^4$ we have $0,1,4,9$ to be the quadratic residues. The quadratic residues modulo $2^5$ are $0,1,4,9,16,17,25$ and so on.

Best Answer

Let $x^2=a+kp^n$ where $a$ is an integer

Case $\#1:$ If $a=0, x$ must be divisible by $\left\lceil\dfrac n2\right\rceil$

So if $n=2m,$ the highest power of $p$ that divides $x,$ can be $m$

In that case $p^{n+1}=p^{2m+1}$ can not divide $x$

Case $\#2:$

If $p\mid k,$ we are done.

Else $p\nmid k\iff(k,p)=1$

For some integer $m,p\nmid m\iff(m,p)=1$

$(x+mp^n)^2=x^2+2x\cdot mp^n+(mp^n)^2$

$=a+p^n(k+2x\cdot m)+(mp^n)^2\equiv a+p^n(k+2x\cdot m)\pmod{p^{n+1}}$

We need $k+2x\cdot m\equiv0\pmod p$

As $(kx,p)=1,$ we can always find $m$ by Bézout's Lemma

Related Question