Powers Modulo p: Legendre Symbol and Application to Mod p^k

Before this, knowFocusing on Powers Modulo p^k

Interactive · 5 questions

Let's try to solve the simplest case. Let's try to determine when kk is a quadratic residue modulo pp, where pp is an odd prime. Again, we say pp is odd for simplicity. If it were 22, then everything is a quadratic residue.

For the remainder of this explanation, I will abbreviate quadratic residue as QR and quadratic non-residue as QNR.

Let's make some definitions in order to make our lives easier

Legendre symbol

Let's define a function (a∣p):={1if a is a nonzero QR modulo p0if a≡0(modp)−1if a is a QNR modulo p(a|p):=\begin{cases} 1&\text{if }a\text{ is a nonzero QR modulo }p\\ 0&\text{if }a\equiv 0\pmod{p}\\ -1&\text{if }a\text{ is a QNR modulo }p \end{cases}

Also, (a∣p)=a(p−12)(a|p)=a^{(\frac{p-1}{2})}

These two definitions are equivalent. We will not be proving it, but it is a nice exercise. It is known as Euler's Criterion.

This is called the Legendre symbol, and other ways to express it are (a/p)(a/p) and (ap)\left(\dfrac{a}{p}\right).

In general we will be looking at nonzero elements modulo pp, so we will rarely use the 00 case.

Let's find out some interesting properties about (a∣p)(a|p).

What happens when we multiply two QRs? (If (a∣p)=1(a|p)=1 and (b∣p)=1(b|p)=1, then what is (ab∣p)(ab|p)?)

Choose one answer

Read · 1 min

The Legendre Symbol is denoted as (x/p) and is the same value as x to the power p-1/2, which takes the value of 0 iff x is 0 mod p, 1 iff x is a qudratic residue mod p, and -1 iff x is not a quadratic residue mod p.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems