logo

Proof of the Multiplicative Property of the Legendre Symbol 📂Number Theory

Proof of the Multiplicative Property of the Legendre Symbol

Definition

QR and NR respectively stand for quadratic residues and non-quadratic residues. The Legendre Symbol for a natural number aa less than pp is defined as (ap)={1a: QR1a: NR \left( { a \over p } \right) = \begin{cases} 1 & a \text{: QR} \\ -1 & a \text{: NR} \end{cases} In number theory, (xy)\displaystyle \left( {{x} \over {y}} \right) is not a fraction but referred to as the Legendre Symbol, and when generalized for non-prime natural numbers, the notation remains the same but is called the Jacobi Symbol.

Theorem 1

For a prime number pp greater than 22 (abp)=(ap)(bp) \left( { ab \over p } \right) = \left( { a \over p } \right) \left( { b \over p } \right)

Description

For example, for p=7p=7, 1,2,41,2,4 is a QR and 3,5,63,5,6 is an NR, therefore (17)=(27)=(47)=1 \left( { 1 \over 7 } \right) = \left( { 2 \over 7 } \right) = \left( { 4 \over 7 } \right) = 1 and (37)=(57)=(67)=1 \left( { 3 \over 7 } \right) = \left( { 5 \over 7 } \right) = \left( { 6 \over 7 } \right) = -1 This symbol greatly facilitates operations on quadratic residues, having a multiplicative property. The multiplicative property means maintaining multiplication inside and outside the function as in f(ab)=f(a)f(b)f(ab) = f(a)f(b). It means that instead of calculating large numbers as they are, they can be factored into smaller numbers for computation.

Before proving, let’s first discuss a fact that QR and NR have the following properties:

  • QR x QR = QR
  • QR x NR = NR
  • NR x NR = QR

Let’s look at the example given in p=7p=7 to check if this calculation is indeed true. It seems like watching the multiplication of 11 and 1-1, and actually, that’s the core idea of the Legendre Symbol.

Proof

Part 1. QR x QR = QR

In the case of (abp)=(ap)(bp)\displaystyle \left( { ab \over p } \right) = \left( { a \over p } \right) \left( { b \over p } \right) where (abp)=(ap)\displaystyle \left( { ab \over p } \right) = \left( { a \over p } \right), (bp)=1\displaystyle \left( { b \over p } \right) = 1. If we assume q1=aq_{1} = a and q2=bq_{2} = b are QR, then there exist m1{m_{1}} and m2{m_{2}} satisfying q1m12(modp)q_{1} \equiv {m_{1}}^2 \pmod{p} and q2m22(modp)q_{2} \equiv {m_{2}}^2 \pmod{p}. Therefore, if we say q3q1q2m12m22(m1m2)2(modp) q_{3} \equiv q_{1} q_{2} \equiv {m_{1}}^2 {m_{2}}^2 \equiv (m_{1} m_{2})^2 \pmod{p} then, q3q_{3} is a QR.


Part 2. QR x NR = NR

In (abp)=(ap)(bp)\displaystyle \left( { ab \over p } \right) = \left( { a \over p } \right) \left( { b \over p } \right) where (abp)=1\displaystyle \left( { ab \over p } \right) = -1, one of (ap)\displaystyle \left( { a \over p } \right) and (bp)\displaystyle \left( { b \over p } \right) is 11, and the other is 1-1.

If we assume q=aq = a is QR and n=bn = b is NR satisfying qm2(modp)q \equiv m^2 \pmod{p}, and if we assume that the product r=qnr=qn is QR.

Then there exists kk satisfying qnr(modp) qn \equiv r \pmod{p} hence (m)2n(k)2(modp)(m)^2 n \equiv (k)^2 \pmod{p} is true.

The Multiplicative Inverse in Modular Arithmetic: For a prime number pp, if gcd(p,a)=1\gcd(p,a) = 1, the equation ax1(modp)a x \equiv 1 \pmod{p} has exactly one solution in 0<x<p0<x<p.

Multiplying both sides by (m1)2(m^{-1})^2, n(m1k)2(modp) n \equiv (m^{-1}k)^2 \pmod{p} However, since nn is NR, a m1km^{-1} k satisfying such a modular equation cannot exist. This contradiction means that r=qnr=qn is NR.


Part 3. NR x NR = QR

In (abp)=(ap)(bp)\displaystyle \left( { ab \over p } \right) = \left( { a \over p } \right) \left( { b \over p } \right) where (abp)=1\displaystyle \left( { ab \over p } \right) = 1 and (ap)=(bp)=1\displaystyle \left( { a \over p } \right) = \left( { b \over p } \right) = -1.

Let’s assume n=an = a is NR. For a prime number pp, exactly half of 1,2,(p1)1,2, \cdots (p-1) are QR, and exactly half are NR. Similar to proving Fermat’s Little Theorem, thinking of n,2n,(p1)nn, 2n, \cdots (p-1)n will also result in exactly half being QR, and exactly half being NR.

Since we have shown in Part 2 that QR x NR = NR, the product of nn and any QR would be NR. That means if it was QR in 1,2,(p1)1,2, \cdots (p-1), it would be NR in n,2n,(p1)nn, 2n, \cdots (p-1)n. The count of such NRs must precisely be p12\displaystyle {{p-1} \over 2}, and so must QRs to be possible. Therefore, we can only conclude that NR x NR = QR.

The summary of Parts 1~3 represented by the Legendre Symbol is as follows. (abp)=(ap)(bp) \left( { ab \over p } \right) = \left( { a \over p } \right) \left( { b \over p } \right)

Using the multiplicative properties of the Legendre Symbol and Gauss’s Law of Quadratic Reciprocity, the following Corollary can be obtained. This implies that the multiplicative property of the Legendre Symbol also holds for the ‘denominator’.

Corollary

For a prime number aa larger than 22 (apq)=(ap)(aq) \left( { a \over pq } \right) = \left( { a \over p } \right) \left( { a \over q } \right)

Proof of Corollary

Gauss’s Law of Quadratic Reciprocity: (qp)={(pq)p1(mod4)q1(mod4)(pq)p3(mod4)q3(mod4)\left( {{ q } \over { p }} \right) = \begin{cases} \left( {{ p } \over { q }} \right) & p \equiv 1 \pmod{4} \lor q \equiv 1 \pmod{4} \\ - \left( {{ p } \over { q }} \right) & p \equiv 3 \pmod{4} \land q \equiv 3 \pmod{4} \end{cases}


Case 1. a1(mod4)pq1(mod4)a \equiv 1 \pmod{4} \lor pq \equiv 1 \pmod{4}

(apq)=(pqa)=(pa)(qa) \left( {{ a } \over { pq }} \right) = \left( {{ pq } \over { a }} \right) = \left( {{ p } \over { a }} \right) \left( {{ q } \over { a }} \right) Since a1(mod4)a \equiv 1 \pmod{4} (pa)(qa)=(ap)(aq) \left( {{ p } \over { a }} \right) \left( {{ q } \over { a }} \right) = \left( {{ a } \over { p }} \right) \left( {{ a } \over { q }} \right)


Case 2. a3(mod4)pq3(mod4)a \equiv 3 \pmod{4} \land pq \equiv 3 \pmod{4}

(apq)=(pqa)=(pa)(qa) \left( {{ a } \over { pq }} \right) = - \left( {{ pq } \over { a }} \right) = - \left( {{ p } \over { a }} \right) \left( {{ q } \over { a }} \right) Since pq3(mod4)pq \equiv 3 \pmod{4}, and assuming p±1q(mod4)p \equiv \pm 1 \equiv - q \pmod{4}, (pa)(qa)=(ap)(aq) - \left( {{ p } \over { a }} \right) \left( {{ q } \over { a }} \right) = \left( {{ a } \over { p }} \right) \left( {{ a } \over { q }} \right)


In any case, the following holds true. (apq)=(ap)(aq) \left( { a \over pq } \right) = \left( { a \over p } \right) \left( { a \over q } \right)


  1. Silverman. (2012). A Friendly Introduction to Number Theory (4th Edition): p146. ↩︎