1.4.3. The Quadratic Reciprocity Law

This section is based on [BUR11, Sec. 9.3] and on the final lemma of [BUR11, Sec. 9.2].

Our aim is to prove Gauß’ Quadratic Reciprocity Law (Theorem 1.4.3.5), which, given a pair of distinct odd primes p,qp,q, relates the Legendre symbols (pq)(\tfrac{p}{q}) and (qp)(\tfrac{q}{p}) by the beautifully simple formula

(pq)⋅(qp)=(−1)p−12⁢q−12.\Big{(}\frac{p}{q}\Big{)}\cdot\Big{(}\frac{q}{p}\Big{)}=(-1)^{\frac{p-1}{2}% \frac{q-1}{2}}.
Proposition 1.4.3.1 (Eisenstein’s Lemma).

Let pp be an odd prime and a∈ℤ{a\in\mathbb{Z}} be odd and such that gcd⁡(a,p)=1{\gcd(a,p)=1}. Then

(ap)=(−1)ℓ,ℓ≔∑k=1(p−1)/2⌊k⁢ap⌋.\Big{(}\frac{a}{p}\Big{)}=(-1)^{\ell},\qquad\ell\coloneqq\sum_{k=1}^{(p-1)/2}% \lfloor{\tfrac{ka}{p}}\rfloor.
Proof.

By Gauß’ Lemma (Theorem 1.4.2.10), we have

(ap)=(−1)n\Big{(}\frac{a}{p}\Big{)}=(-1)^{n}

where nn is the number of elements in the set

S={a,2⁢a,3⁢a,…,p−12⋅a}S=\{a,2a,3a,\ldots,\tfrac{p-1}{2}\cdot a\}

whose remainder upon division by pp is larger than p/2p/2. Therefore, it is enough to prove that nn and ℓ\ell have the same parity, that is, n≡ℓ(mod2){n\equiv\ell{\pmod{2}}}.

For 1≤k≤(p−1)/2{1\leq k\leq(p-1)/2}, using the Division with Remainder Theorem (Theorem 1.1.1.8), write

k⁢a=qk⁢p+tk,qk,tk∈ℤ, 0≤tk<p.ka=q_{k}p+t_{k},\qquad q_{k},t_{k}\in\mathbb{Z},\ 0\leq t_{k}<p. (1.4.3.2)

Then

⌊k⁢ap⌋=qkandk⁢a=⌊k⁢ap⌋⋅p+tk.\lfloor{\tfrac{ka}{p}}\rfloor=q_{k}\qquad\text{and}\qquad ka=\lfloor{\tfrac{ka% }{p}}\rfloor\cdot p+t_{k}.

Moreover, tk≠0{t_{k}\neq 0} since the integer k⁢a∈S{ka\in S} is not divisible by pp. We now rely on part of the proof of Gauß’ Lemma (Theorem 1.4.2.10). Let r1,…,rm,s1,…,snr_{1},\dots,r_{m},s_{1},\dots,s_{n} be the remainders obtained by dividing the elements in SS by pp, and recall that 0<ri<p/2{0<r_{i}<p/2} and p/2<si<p{p/2<s_{i}<p}. Thus, up to reordering, the integers t1,…,tp−12t_{1},\dots,t_{\tfrac{p-1}{2}} are precisely the integers r1,…,rm,s1,…,snr_{1},\dots,r_{m},s_{1},\dots,s_{n}. Hence, adding the (p−1)/2{(p-1)/2} equations (1.4.3.2) yields

∑k=1(p−1)/2k⁢a=∑k=1(p−1)/2⌊k⁢ap⌋⋅p+∑i=1mri+∑j=1nsj.\sum_{k=1}^{(p-1)/2}ka=\sum_{k=1}^{(p-1)/2}\lfloor{\tfrac{ka}{p}}\rfloor\cdot p% +\sum_{i=1}^{m}r_{i}+\sum_{j=1}^{n}s_{j}. (1.4.3.3)

From the proof of Gauß’ Lemma (Theorem 1.4.2.10), we also know the following:

m+n=p−12and{1,2,…,p−12}={r1,…,rm,p−s1,…,p−sn}.m+n=\frac{p-1}{2}\qquad\text{and}\qquad\{1,2,\ldots,\tfrac{p-1}{2}\}=\{r_{1},% \ldots,r_{m},p-s_{1},\ldots,p-s_{n}\}.

Therefore,

∑k=1(p−1)/2k=∑i=1mri+∑j=1n(p−sj)=n⁢p+∑i=1mri−∑j=1nsj.\sum_{k=1}^{(p-1)/2}k=\sum_{i=1}^{m}r_{i}+\sum_{j=1}^{n}(p-s_{j})=np+\sum_{i=1% }^{m}r_{i}-\sum_{j=1}^{n}s_{j}. (1.4.3.4)

Subtracting equation (1.4.3.4) from (1.4.3.3), we obtain

(a−1)⁢∑k=1(p−1)/2k\displaystyle(a-1)\sum_{k=1}^{(p-1)/2}k =∑k=1(p−1)/2⌊k⁢ap⌋⋅p−n⁢p+2⁢∑j=1nsj\displaystyle=\sum_{k=1}^{(p-1)/2}\lfloor{\tfrac{ka}{p}}\rfloor\cdot p-np+2% \sum_{j=1}^{n}s_{j}
=p⁢(−n+∑k=1(p−1)/2⌊k⁢ap⌋)+2⁢∑j=1nsj.\displaystyle=p\Big{(}-n+\sum_{k=1}^{(p-1)/2}\lfloor{\tfrac{ka}{p}}\rfloor\Big% {)}+2\sum_{j=1}^{n}s_{j}.

Since the prime pp is odd and the integer a−1{a-1} is even by assumption, we obtain the congruence

0≡−n+∑k=1(p−1)/2⌊k⁢ap⌋(mod2).0\equiv-n+\sum_{k=1}^{(p-1)/2}\lfloor{\tfrac{ka}{p}}\rfloor{\pmod{2}}.

Equivalently, n≡ℓ(mod2){n\equiv\ell{\pmod{2}}}. This finishes the proof. ∎

Theorem 1.4.3.5 (Gauß’ Quadratic Reciprocity Law).

Let p,qp,q be distinct odd primes. Then

(pq)⋅(qp)=(−1)p−12⁢q−12.\Big{(}\frac{p}{q}\Big{)}\cdot\Big{(}\frac{q}{p}\Big{)}=(-1)^{\tfrac{p-1}{2}% \tfrac{q-1}{2}}.
Eisenstein’s Proof.

By Eisenstein’s Lemma (Proposition 1.4.3.1),

(pq)⋅(qp)=(−1)m⁢(−1)n=(−1)m+n\Big{(}\frac{p}{q}\Big{)}\cdot\Big{(}\frac{q}{p}\Big{)}=(-1)^{m}(-1)^{n}=(-1)^% {m+n}

where

m=∑j=1(q−1)/2⌊j⁢pq⌋andn=∑k=1(p−1)/2⌊k⁢qp⌋.m=\sum_{j=1}^{(q-1)/2}\lfloor{\tfrac{jp}{q}}\rfloor\qquad\text{and}\qquad n=% \sum_{k=1}^{(p-1)/2}\lfloor{\tfrac{kq}{p}}\rfloor.

Thus, it is enough to prove that

m+n=p−12⋅q−12.m+n=\frac{p-1}{2}\cdot\frac{q-1}{2}.

We turn the above equality into a neat counting problem.

Consider the rectangle RR in the Euclidean plane ℝ2\mathbb{R}^{2} with vertices (0,0)(0,0), (p/2,0)(p/2,0), (p/2,q/2)(p/2,q/2) and (0,q/2)(0,q/2):

Figure composed with AI assistance.

Since the primes pp and qq are odd, we have

R∩ℤ+2\displaystyle R\cap\mathbb{Z}_{+}^{2} ={(a,b)∈R:a,b∈ℤ+}\displaystyle=\{(a,b)\in R\colon{a,b\in\mathbb{Z}_{+}}\}
={(a,b)∈ℤ+2:1≤a≤p−12⁢ and ⁢1≤b≤q−12}.\displaystyle=\{(a,b)\in\mathbb{Z}_{+}^{2}\colon{1\leq a\leq\tfrac{p-1}{2}% \text{ and }1\leq b\leq\tfrac{q-1}{2}}\}.

Hence,

#⁢(R∩ℤ+2)=p−12⋅q−12.\#(R\cap\mathbb{Z}_{+}^{2})=\frac{p-1}{2}\cdot\frac{q-1}{2}.

Thus, we need to prove that #⁢(R∩ℤ+2)=m+n{\#(R\cap\mathbb{Z}_{+}^{2})=m+n}.

The diagonal DD from the point (0,0)(0,0) to the point (p2,q2)(\tfrac{p}{2},\tfrac{q}{2}) divides RR into two triangles T1T_{1} and T2T_{2} as indicated in the figure. We claim that the diagonal DD contains no points from R∩ℤ+2{R\cap\mathbb{Z}_{+}^{2}}. Indeed, the diagonal DD is part of the line with the equation y=(q/p)⁢x{y=(q/p)x}, so a point (a,b)∈D{(a,b)\in D} with a,b∈ℤ+{a,b\in\mathbb{Z}_{+}} satisfies

p⁢b=p⋅(qp⋅a)=q⁢a.pb=p\cdot\Big{(}\frac{q}{p}\cdot a\Big{)}=qa.

Since the primes pp and qq are distinct, Euclid’s Lemma (Theorem 1.1.4.2) implies that p∣a{p\mid a} and also that q∣b{q\mid b}. But this is impossible since 1≤a<p/2{1\leq a<p/2} and 1≤b<q/2{1\leq b<q/2}. We conclude that #⁢(R∩ℤ+2){\#(R\cap\mathbb{Z}_{+}^{2})} equals the number of points in ℤ2\mathbb{Z}^{2} that lie in the interior of either of the triangles T1T_{1} and T2T_{2}.

Since the roles of the primes pp and qq are symmetric, the same is true for the triangles T1T_{1} and T2T_{2}. We focus our attention on T1T_{1} and prove that the number of points in ℤ2\mathbb{Z}^{2} that lie in the interior of T1T_{1} equals

n=∑k=1(p−1)/2⌊k⁢qp⌋.n=\sum_{k=1}^{(p-1)/2}\lfloor{\tfrac{kq}{p}}\rfloor.

Indeed, for each integer 1≤k≤(p−1)/2{1\leq k\leq(p-1)/2}, the vertical line x=k{x=k} meets the diagonal DD at the point (k,k⁢q/p)(k,kq/p). Hence, (a,b)∈T1∩R∩ℤ+2{(a,b)\in T_{1}\cap R\cap\mathbb{Z}_{+}^{2}} lies on the vertical line x=k{x=k} if and only if a=k{a=k} and b∈ℤ+{b\in\mathbb{Z}_{+}} satisfies

1≤b≤⌊k⁢qp⌋.1\leq b\leq\lfloor{\tfrac{kq}{p}}\rfloor.

Here, we use that k⁢qp\tfrac{kq}{p} is not an integer: we have p∤q{p\nmid q} since p≠q{p\neq q}, and p∤k{p\nmid k} since 1≤k<p/2{1\leq k<p/2}, so that p∤k⁢q{p\nmid kq} by Euclid’s Lemma (Theorem 1.1.4.2). We obtain the result by taking the sum over 1≤k≤(p−1)/2{1\leq k\leq(p-1)/2}.

Similarly, the number of points in ℤ2\mathbb{Z}^{2} that lie in the interior of T2T_{2} equals

m=∑j=1(q−1)/2⌊j⁢pq⌋.m=\sum_{j=1}^{(q-1)/2}\lfloor{\tfrac{jp}{q}}\rfloor.

Therefore,

m+n=#⁢(R∩ℤ+2)=p−12⋅q−12.m+n=\#(R\cap\mathbb{Z}_{+}^{2})=\frac{p-1}{2}\cdot\frac{q-1}{2}.

This finishes the proof. ∎

We now deduce a number of corollaries from Gauß’ Quadratic Reciprocity Law (Theorem 1.4.3.5). The formulas for (−1p)(\tfrac{-1}{p}) and (2p)(\tfrac{2}{p}) (Corollary 1.4.2.6 and Theorem 1.4.2.12) are often called the supplements to Gauß’ Quadratic Reciprocity Law.

Corollary 1.4.3.6.

Let p,qp,q be distinct odd primes. Then

(pq)⋅(qp)={1p≡1(mod4) or q≡1(mod4)−1p≡3(mod4) and q≡3(mod4).\Big{(}\frac{p}{q}\Big{)}\cdot\Big{(}\frac{q}{p}\Big{)}=\begin{cases}1&p\equiv 1% {\pmod{4}}\text{ or }q\equiv 1{\pmod{4}}\\ -1&p\equiv 3{\pmod{4}}\text{ and }q\equiv 3{\pmod{4}}.\end{cases}
Proof.

The integer (p−1)/2{(p-1)/2} is even if and only if p=4⁢k+1{p=4k+1} for some k∈ℤ{k\in\mathbb{Z}}, and it is odd if p=4⁢ℓ+3{p=4\ell+3} for some ℓ∈ℤ{\ell\in\mathbb{Z}}. The claim now follows from Gauß’ Quadratic Reciprocity Law (Theorem 1.4.3.5). ∎

Corollary 1.4.3.7.

Let p,qp,q be distinct odd primes. Then

(pq)={(qp)p≡1(mod4) or q≡1(mod4)−(qp)p≡3(mod4) and q≡3(mod4).\Big{(}\frac{p}{q}\Big{)}=\begin{cases}\Big{(}\frac{q}{p}\Big{)}&p\equiv 1{% \pmod{4}}\text{ or }q\equiv 1{\pmod{4}}\\ -\Big{(}\frac{q}{p}\Big{)}&p\equiv 3{\pmod{4}}\text{ and }q\equiv 3{\pmod{4}}.% \end{cases}
Proof.

Since (qp)2=1{(\tfrac{q}{p})^{2}=1}, the claim follows by multiplying the equalities in Corollary 1.4.3.6 by (qp)(\tfrac{q}{p}). ∎

Theorem 1.4.3.8.

Let p>3{p>3} be an odd prime. Then

(3p)={1p≡±1(mod12)−1p≡±5(mod12).\Big{(}\frac{3}{p}\Big{)}=\begin{cases}1&p\equiv\pm 1{{\pmod{12}}}\\ -1&p\equiv\pm 5{{\pmod{12}}}.\end{cases}
Proof.

Taking q=3{q=3} in Corollary 1.4.3.7, we obtain

(3p)={(p3)p≡1(mod4)−(p3)p≡3(mod4).\Big{(}\frac{3}{p}\Big{)}=\begin{cases}\Big{(}\frac{p}{3}\Big{)}&p\equiv 1{% \pmod{4}}\\ -\Big{(}\frac{p}{3}\Big{)}&p\equiv 3{\pmod{4}}.\end{cases}

Since p>3{p>3} is prime, we have p≡1,2(mod3){p\equiv 1,2{\pmod{3}}} and

(p3)={(13)=1p≡1(mod3)(23)=−1p≡2(mod3).\Big{(}\frac{p}{3}\Big{)}=\begin{cases}\Big{(}\frac{1}{3}\Big{)}=1&p\equiv 1{% \pmod{3}}\\ \Big{(}\frac{2}{3}\Big{)}=-1&p\equiv 2{\pmod{3}}.\end{cases}

Combining the above, we have

(3p)=1\Big{(}\frac{3}{p}\Big{)}=1

precisely in the following cases:

  • •
    ​

    p≡1(mod4){p\equiv 1{\pmod{4}}} and p≡1(mod3){p\equiv 1{\pmod{3}}}.

  • •
    ​

    p≡3(mod4){p\equiv 3{\pmod{4}}} and p≡2(mod3){p\equiv 2{\pmod{3}}}.

We now apply the Chinese Remainder Theorem (Theorem 1.2.7.1): since gcd⁡(3,4)=1{\gcd(3,4)=1}, each of the systems of linear congruences

x\displaystyle x ≡1(mod4)\displaystyle\equiv 1{\pmod{4}}
x\displaystyle x ≡1(mod3)\displaystyle\equiv 1{\pmod{3}}

and

x\displaystyle x ≡3(mod4)\displaystyle\equiv 3{\pmod{4}}
x\displaystyle x ≡2(mod3)\displaystyle\equiv 2{\pmod{3}}

has a unique solution modulo 12=3⋅4{12=3\cdot 4}. By direct inspection, 11 is a solution of the first system while 1111 is a solution of the second system. Since 11≡−1(mod12){11\equiv-1{{\pmod{12}}}}, we conclude that the above conditions hold if and only if p≡±1(mod12){p\equiv\pm 1{{\pmod{12}}}}. Finally, if the latter congruence does not hold, so that (3p)=−1{(\tfrac{3}{p})=-1}, then

p≡3,5,7,9(mod12).p\equiv 3,5,7,9{{\pmod{12}}}.

Since 7≡−5(mod12){7\equiv-5{{\pmod{12}}}}, to finish the proof it is enough to show that

p≢3,9(mod12).p\not\equiv 3,9{{\pmod{12}}}.

Indeed, if p=12⁢k+3{p=12k+3}, then 3∣p{3\mid p}, in contradiction to the fact that the prime pp is different from 33. For the same reason, if p=12⁢k+9{p=12k+9}, then 3∣p{3\mid p}, which is false. This finishes the proof. ∎

Example 1.4.3.9.

If p=11{p=11} or p=13{p=13}, we have p≡−1,1(mod12){p\equiv-1,1{\pmod{12}}}. By Theorem 1.4.3.8,

(3p)=1,\Big{(}\frac{3}{p}\Big{)}=1,

in agreement with Example 1.4.1.11 (for p=11{p=11}) and Example 1.4.2.3 (for p=13{p=13}).

Remark 1.4.3.10.

Not covered in the lecture The results in Sections 1.4.2 and 1.4.3 provide an algorithm to evaluate arbitrary Legendre symbols. Let pp be an odd prime and a∈ℤ{a\in\mathbb{Z}} with gcd⁡(a,p)=1{\gcd(a,p)=1}. Using the Fundamental Theorem of Arithmetic (Theorem 1.1.4.5), write

a=±2k⁢q1k1⁢⋯⁢qmkma=\pm 2^{k}q_{1}^{k_{1}}\cdots q_{m}^{k_{m}}

for integers k,m≥0{k,m\geq 0}, pairwise-distinct odd primes q1,…,qm≠p{q_{1},\ldots,q_{m}\neq p} (since we have gcd⁡(a,p)=1{\gcd(a,p)=1}) and positive integers k1,…,kmk_{1},\dots,k_{m}. Here, k=0{k=0} if and only if aa is odd, and the sign −1{-1} appears if and only if a<0{a<0}. We proceed as follows:

  • •
    ​

    By Proposition 1.4.2.4(4),

    (ap)=(±1p)⁢(2p)k⁢(q1p)k1⁢⋯⁢(qmp)km.\Big{(}\frac{a}{p}\Big{)}=\Big{(}\frac{\pm 1}{p}\Big{)}\Big{(}\frac{2}{p}\Big{% )}^{k}\Big{(}\frac{q_{1}}{p}\Big{)}^{k_{1}}\cdots\Big{(}\frac{q_{m}}{p}\Big{)}% ^{k_{m}}.
  • •
    ​

    The Legendre symbols (±1p)(\tfrac{\pm 1}{p}) and (2p)(\tfrac{2}{p}) are known (Proposition 1.4.2.4(5) and Theorem 1.4.2.12).

  • •
    ​

    It remains to compute the Legendre symbols (qip)(\tfrac{q_{i}}{p}) whenever kik_{i} is odd, as otherwise (qip)ki=1{(\tfrac{q_{i}}{p})^{k_{i}}=1}.

  • •
    ​

    We are reduced to computing (qp)(\tfrac{q}{p}) for distinct odd primes p,qp,q.

    • –
      ​

      If q>p{q>p}, by the Division with Remainder Theorem (Theorem 1.1.1.8) and Proposition 1.4.2.4(1), dividing qq by pp yields a remainder 0<r<p{0<r<p} that satisfies

      (rp)=(qp).\Big{(}\frac{r}{p}\Big{)}=\Big{(}\frac{q}{p}\Big{)}.

      The remainder rr admits a factorisation of the same form as that of the original integer aa, and we may continue the process as in the first bullet point.

    • –
      ​

      If q<p{q<p}, use Gauß’ Quadratic Reciprocity Law (Theorem 1.4.3.5) (or one of its corollaries) to replace (qp)(\tfrac{q}{p}) by ±(pq){\pm(\tfrac{p}{q})}, where the sign ±1{\pm 1} is known. Then apply the previous point to (pq)(\tfrac{p}{q}).

  • •
    ​

    In the above algorithm, each application of Gauß’ Quadratic Reciprocity Law (Theorem 1.4.3.5) decreases the prime denominator. Therefore, the algorithm terminates: one necessarily arrives at Legendre symbols with numerator ±1{\pm 1} or 22, whose values are given by Proposition 1.4.2.4(5) and Theorem 1.4.2.12.

Example 1.4.3.11.

Not covered in the lectureLet n=45⁢738=2⋅33⋅7⋅112{n=45~{}738=2\cdot 3^{3}\cdot 7\cdot 11^{2}} and p=13{p=13}. We compute (n13)(\tfrac{n}{13}) using the method described in Remark 1.4.3.10. We have

(45⁢73813)\displaystyle\Big{(}\frac{45~{}738}{13}\Big{)} =(213)⋅(3313)⋅(713)⋅(11213)\displaystyle=\Big{(}\frac{2}{13}\Big{)}\cdot\Big{(}\frac{3^{3}}{13}\Big{)}% \cdot\Big{(}\frac{7}{13}\Big{)}\cdot\Big{(}\frac{11^{2}}{13}\Big{)}
=(213)⋅(313)3⋅(713)⋅(1113)2\displaystyle=\Big{(}\frac{2}{13}\Big{)}\cdot\Big{(}\frac{3}{13}\Big{)}^{3}% \cdot\Big{(}\frac{7}{13}\Big{)}\cdot\Big{(}\frac{11}{13}\Big{)}^{2}
=(213)⋅(313)⋅(713).\displaystyle=\Big{(}\frac{2}{13}\Big{)}\cdot\Big{(}\frac{3}{13}\Big{)}\cdot% \Big{(}\frac{7}{13}\Big{)}.

We have seen in Example 1.4.2.3 that

(213)=−1and(313)=1.\Big{(}\frac{2}{13}\Big{)}=-1\qquad\text{and}\qquad\Big{(}\frac{3}{13}\Big{)}=1.

Hence,

(45⁢73813)=−(713).\Big{(}\frac{45~{}738}{13}\Big{)}=-\Big{(}\frac{7}{13}\Big{)}.

Using Gauß’ Quadratic Reciprocity Law (Theorem 1.4.3.5), we obtain

(713)⁢(137)=(−1)6⋅3=1,\Big{(}\frac{7}{13}\Big{)}\Big{(}\frac{13}{7}\Big{)}=(-1)^{6\cdot 3}=1,

so that

(713)=(137).\Big{(}\frac{7}{13}\Big{)}=\Big{(}\frac{13}{7}\Big{)}.

Next, we observe that 13≡6(mod7){13\equiv 6{\pmod{7}}} and therefore

(137)=(67)=(27)⋅(37)=1⋅(−1)=−1.\Big{(}\frac{13}{7}\Big{)}=\Big{(}\frac{6}{7}\Big{)}=\Big{(}\frac{2}{7}\Big{)}% \cdot\Big{(}\frac{3}{7}\Big{)}=1\cdot(-1)=-1.

Here, the penultimate equality uses Theorem 1.4.2.12 and Theorem 1.4.3.8. Combining the above, we obtain the sought-after value

(45⁢73813)=−(713)=−(137)=−(−1)=1.\Big{(}\frac{45~{}738}{13}\Big{)}=-\Big{(}\frac{7}{13}\Big{)}=-\Big{(}\frac{13% }{7}\Big{)}=-(-1)=1.

Recall Proposition 1.3.2.10. The following result illustrates the utility of Theorem 1.4.3.8.

Proposition 1.4.3.12.

Not covered in the lectureLet n≥1{n\geq 1} be an integer and suppose that Fn≔22n+1{F_{n}\coloneqq 2^{2^{n}}+1} is prime. Then the integer 33 is a primitive root of FnF_{n}.

Proof.

We claim that Fn≡5(mod12){F_{n}\equiv 5{\pmod{12}}}. Indeed, 42=16{4^{2}=16} and

16≡4(mod12).16\equiv 4{\pmod{12}}.

Inductively, 4m≡4(mod12){4^{m}\equiv 4{\pmod{12}}} for all integers m≥1{m\geq 1}. Then, since 2n=2⁢m{2^{n}=2m} for some m≥1{m\geq 1},

Fn=22n+1=22⁢m+1=4m+1.F_{n}=2^{2^{n}}+1=2^{2m}+1=4^{m}+1.

Therefore, Fn≡5(mod12){F_{n}\equiv 5{\pmod{12}}}. In particular, 3∤Fn{3\nmid F_{n}} and gcd⁡(3,Fn)=1{\gcd(3,F_{n})=1}. By Theorem 1.4.3.8,

(3Fn)=−1.\Big{(}\frac{3}{F_{n}}\Big{)}=-1.

Recall from Corollary 1.3.1.6 that ordFn⁡(3)\operatorname{ord}_{F_{n}}(3) divides

φ⁢(Fn)=Fn−1=22n.\varphi(F_{n})=F_{n}-1=2^{2^{n}}.

Since every positive divisor of 22n2^{2^{n}} is a power of 22, each proper positive divisor of 22n2^{2^{n}} must divide

(Fn−1)/2=22n−1.(F_{n}-1)/2=2^{2^{n}-1}.

Suppose that

ordFn⁡(3)≠φ⁢(Fn),\operatorname{ord}_{F_{n}}(3)\neq\varphi(F_{n}),

so that ordFn⁡(3)\operatorname{ord}_{F_{n}}(3) divides φ⁢(Fn)/2\varphi(F_{n})/2. By Theorem 1.3.1.5,

3(Fn−1)/2≡1(modFn).3^{(F_{n}-1)/2}\equiv 1{\pmod{F_{n}}}.

On the other hand, Euler’s Criterion (Corollary 1.4.1.10) yields the congruence

(3Fn)≡3(Fn−1)/2(modFn).\Big{(}\frac{3}{F_{n}}\Big{)}\equiv 3^{(F_{n}-1)/2}{\pmod{F_{n}}}.

Hence,

1≡−1(modFn),1\equiv-1{\pmod{F_{n}}},

which is impossible since Fn>2{F_{n}>2}. This shows that ordFn⁡(3)=φ⁢(Fn){\operatorname{ord}_{F_{n}}(3)=\varphi(F_{n})} and, by definition, the integer 33 is a primitive root of FnF_{n}. ∎