Number Theory III

Number Theory III
Problems (Michaelmas)

Jack Shotton based on problems by Alexander Stasinski

Problems marked \(\star \) are problems I expect everyone to try during the term; there will be around one per lecture. The assignments will be drawn from among these. Problems marked \(\dagger \) are (usually) harder and should be regarded as optional. You should do the remaining problems, but you might save some until the revision period.

1 Introduction

1.
(Exercise 1.2) Show that if \((a,b,c)\) is a primitive Pythagorean triple, then any two of \(a\), \(b\) and \(c\) are coprime.
2.
(Exercise 1.6) Suppose that \((a,b,c)\) is a primitive Pythagorean triple with \(b\) even, written as \[ a = m^{2}-n^{2}, \qquad b = 2mn, \qquad c = m^{2}+n^{2} \] for integers \(m>n>0\) as in Theorem 1.5. Show that \(m\) and \(n\) must be coprime and of opposite parity. Conversely, show that if \(m>n>0\) are coprime integers of opposite parity, then \((m^{2}-n^{2}, 2mn, m^{2}+n^{2})\) is a primitive Pythagorean triple.
3.
\(\star \) Find all integers \(x,y\) such that \[ y^{2}-y=x^{3}. \] (Hint: factorise the left hand side.)
Solution

Clearly \(x=y=0\) and \(x=0\), \(y=1\) are solutions. Write the equation as \[ y(y-1)=x^{3}. \] As \(y\) and \(y-1\) differ by \(1\), they are coprime. If \(y = 0\) or \(y = 1\) then \(x = 0\), giving the solutions above, so suppose that \(y\) and \(y-1\) are non-zero. Since \(\Z \) is a unique factorisation domain, we can write \[ y=\pm \prod _{i=1}^r p_{i}^{a_{i}}\] and \[y-1=\pm \prod _{j=i}^s q_{i}^{b_{i}}, \] where the \(p_{i}\) and \(q_{j}\) are primes, the \(p_{i}\) are pairwise distinct, as are the \(q_i\); all \(a_i\) and \(b_i\) are in \(\N \); and no \(p_{i}\) equals any \(q_{j}\) as \(y\) and \(y-1\) are coprime. Then the product of these is the factorisation of \(x^{3}\) into powers of distinct primes, and by uniqueness of factorisation every \(a_{i}\) and \(b_{j}\) is divisible by \(3\). Thus each term \(p_i^{a_i}\) or \(q_i^{b_i}\) is a cube. As \(-1=(-1)^{3}\), it follows that \(y\) and \(y-1\) are both cubes, say \[ y=u^{3},\qquad y-1=v^{3} \] with \(u,v\in \Z \) and \(u > v\) (as \(y > y-1\)). Then \[ 1=u^{3}-v^{3}=(u-v)(u^{2}+uv+v^{2}), \] and so \(u-v=u^{2}+uv+v^{2}= 1\). Substituting \(u=v + 1\) we obtain \(3v(v+1)=0\), so \(v=0\) or \(v=-1\). But these give only the excluded cases \(y=1\) or \(y=0\).

Therefore the only integer solutions are \(x=y=0\) and \(x=0\), \(y=1\).

2 EDs, PIDs and UFDs

4.
Let \(R=\Z [\sqrt {-13}]\), and set \(\alpha =1+\sqrt {-13}\in R\). Define the norm map \(N:R\rightarrow \Z \) by \(N(a+b\sqrt {-13})=a^{2}+13b^{2}\). As \(N(z) = |z|^2\), \(N\) is multiplicative.
(a)
Show that \(\alpha \bar {\alpha } = 2 \cdot 7\) gives two different factorisations of \(14\) into irreducibles.
(b)
Show that the ideal \((7, \alpha )_R\) is not principal.
5.
Let \(R\) be a Euclidean domain with Euclidean function \(\phi \). Show that:
(a)
\(\phi (a)\geq \phi (1)\) for all \(a\in R\setminus \{0\}\).
(b)
\(\phi (a)=\phi (1)\) if and only if \(a\) is a unit. (Hint: at some point divide \(1\) by \(a\) with remainder.)
(c)
If \(a,b\in R\setminus \{0\}\) and \(b\) is a non-unit, then \(\phi (ab)>\phi (a)\). (Hint: divide \(a\) by \(ab\) with remainder.)
6.
\(\star \) (Exercise 2.5) For \(n\in \N \), let \(N:\Z [\sqrt {-n}]\to \Z \) be the norm \(N(a+b\sqrt {-n})=a^{2}+nb^{2}\).
(a)
Show that \(\Z [\sqrt {-2}]\) is a Euclidean domain with Euclidean function \(N\).
(b)
Show that \(N\) is not a Euclidean function on \(\Z [\sqrt {-n}]\) for any \(n \ge 3\). Hint: consider the remainder of \(1 + \sqrt {-n}\) on division by \(2\).
Solution

(a) This is the same method as for \(\Z [i]\) in Lemma 2.3. Extend \(N\) to \(\Q (\sqrt {-2})\) by the same formula; since \(N(x)=x\bar {x}\), it is multiplicative, and \(N(x)=0\) if and only if \(x=0\).

For the first property, if \(x,y\in R=\Z [\sqrt {-2}]\) are non-zero then \(N(y)\geq 1\), so \(N(xy)=N(x)N(y)\geq N(x)\).

For the second property, let \(x,y\in R\) with \(y\neq 0\). Write \(x/y=a+b\sqrt {-2}\) with \(a,b\in \Q \), and let \(a'\) and \(b'\) be the closest integers to \(a\) and \(b\), so that \(|a-a'|\leq 1/2\) and \(|b-b'|\leq 1/2\). Set \(q=a'+b'\sqrt {-2}\in R\) and \(r=x-qy\in R\). Then \[ r=\left ((a-a')+(b-b')\sqrt {-2}\right )y, \] so \[ N(r)=\left ((a-a')^{2}+2(b-b')^{2}\right )N(y)\leq \left (\tfrac {1}{4}+\tfrac {2}{4}\right )N(y)=\tfrac {3}{4}N(y)<N(y), \] as \(N(y)>0\). So \(x=qy+r\) with \(r=0\) or \(N(r)<N(y)\).

(b) If \(N\) were a Euclidean function then, taking \(x = 1 + \sqrt {-n}\) and \(y = 2\), there would exist \(q\) and \(r\) in \(\Z [\sqrt {-n}]\) with \[1 + \sqrt {-n} = 2q + r\] and \(N(r) < N(2) = 4\). Then \(r\) has the form \(a + b\sqrt {-n}\) with \(a, b\) odd integers and its norm \(N(r)\) is \(a^2 + nb^2\). As \(a\) and \(b\) are odd, \[N(r) \ge 1^2(1+ n) \ge 4,\] contradiction.

(Geometrically: \(\frac {1+\sqrt {-n}}{2}\) is the centre of a rectangle with side lengths \(1\) and \(\sqrt {n}\) in the lattice \(\Z [\sqrt {-n}]\subset \C \), and its distance to the nearest lattice point is \(\frac {\sqrt {1+n}}{2}\geq 1\).)

7.
Let \(N:\Z [\sqrt {2}]\to \Z \) be the function \(N(a+b\sqrt {2})=a^{2}-2b^{2}\). Show that \(\Z [\sqrt {2}]\) is a Euclidean domain with Euclidean function \(|N|\). You may assume that \(N(xy) = N(x)N(y)\).
8.
\(\star \) In the ring \(\Z [i]\), we have \[ (1+3i)(1-3i)=10=2\cdot 5, \] but \(\Z [i]\) is a Euclidean domain (Lemma 2.3), hence a PID (Theorem 2.6), hence a UFD (Theorem 2.10). Explain why this is not a contradiction.
Solution

It is not a contradiction because the factors in the two products are not irreducible! Moreover, when decomposed into irreducibles, they become the same, up to units. To show this, try to decompose \(1+3i\) into irreducibles: it has norm \(10\) so if it has a proper factorisation \(1+3i=xy\), then the proper factors must have norm \(2\) or \(5\) (and are thus irreducible, as their norms are prime).

The elements of norm \(2\) are \(\pm 1\pm i\).

The elements of norm \(5\) are \(\pm 1\pm 2i\) and \(\pm 2\pm i\).

Dividing, \[ \frac {1+3i}{1+i}=\frac {(1+3i)(1-i)}{2}=2+i, \] so indeed \(1+3i=(1+i)(2+i)\) is the product of two irreducibles. Taking complex conjugates, \[ 1-3i=(1-i)(2-i). \] We thus have \[ (1+3i)(1-3i)=(1+i)(1-i)(2+i)(2-i), \] and the decomposition on the right-hand side is into irreducibles. On the other hand \(2=(1+i)(1-i)\) and \(5=(2+i)(2-i)\), so \[ 2\cdot 5=(1+i)(1-i)(2+i)(2-i) \] is the same factorisation. (Note also that \(1-i=-i(1+i)\), so \(2=-i(1+i)^{2}\) is, up to a unit, the square of an irreducible.)

9.
\(\dagger \) In this problem we prove the claim, made after Theorem 2.6, that \(\Z [\frac {1+\sqrt {-19}}{2}]\) is not a Euclidean domain.
(a)
Let \(R\) be a Euclidean domain that is not a field. Show that there is a non-zero non-unit \(u\in R\) with the following property: for every \(x\in R\) there is some \(z\in R^{\times }\cup \{0\}\) such that \(u\mid x-z\). (Hint: choose \(u\) to be “minimal” in some sense.)
(b)
Let \(\theta =\frac {1+\sqrt {-19}}{2}\), so that \(\theta ^{2}=\theta -5\), and let \(R=\Z [\theta ]=\{a+b\theta : a,b\in \Z \}\). Show that \(N(a+b\theta )=|a+b\theta |^{2}\) is given by \[ N(a+b\theta )=a^{2}+ab+5b^{2}, \] and deduce that the units of \(R\) are \(\pm 1\).
(c)
Use parts (a) and (b) to show that \(R\) is not a Euclidean domain.
10.
(Exercise 3.2) Show that the units of \(\Z [i]\) are \(\pm 1\) and \(\pm i\).
11.
\(\star \) Find all integers \(x,y\) with \(y\) odd such that \[ y^{2}+4=x^{3}. \] (\(\dagger \) Find the solutions with \(y\) even too.)
Solution

By Lemma 2.3 and Theorems 2.6 and 2.10, \(\Z [i]\) is a UFD, and by Problem 10 its units \(\pm 1\), \(\pm i\) are all cubes: \(\pm 1=(\pm 1)^{3}\) and \(\pm i=(\mp i)^{3}\). As in the proof of Theorem 2.12, if \(\alpha \bar {\alpha }\) is a cube in \(\Z \) and \(\alpha \) and \(\bar {\alpha }\) have no common irreducible factor, then \(\alpha \) is a unit times a cube, and hence a cube.

We have \((y+2i)(y-2i)=x^{3}\). If an irreducible \(\pi \) divides both factors, then it divides their difference \(4i=-i(1+i)^{4}\), so \(\pi \) is an associate of \(1+i\) (which is irreducible, as its norm \(2\) is prime). But then \(2=N(1+i)\) divides \(N(y+2i)=y^{2}+4\), which is odd.

Thus the factors are coprime and so \(y+2i=(a+bi)^{3}\) for some \(a,b\in \Z \), and comparing real and imaginary parts, \begin{align*} y&=a^{3}-3ab^{2}=a(a^{2}-3b^{2}),\\ 2&=3a^{2}b-b^{3}=b(3a^{2}-b^{2}). \end{align*}

So \(b\in \{\pm 1,\pm 2\}\), and \(3a^{2} - b^2 = 2/b\). The only cases leading to integer \(a\) are \(b=1\) or \(b=-2\), with \(a=\pm 1\). For \(b=1\) we get \(y=\mp 2\), which is not odd. For \(b=-2\) we get \(y=a(1-12)=\mp 11\), and then \(x^{3}=125\), so \(x=5\). So the solutions with \(y\) odd are \((x,y)=(5,\pm 11)\).

The solutions with \(y\) even. Write \(y=2z\). Then \(x\) is even, say \(x=2w\), and \(4z^{2}+4=8w^{3}\), that is, \(z^{2}+1=2w^{3}\). So \(z\) is odd, and then \(z^{2}+1\equiv 2\bmod 4\), so \(w\) is odd too. In \(\Z [i]\), \[ (z+i)(z-i)=2w^{3}=-i(1+i)^{2}w^{3}. \] This time the factors do have a common factor. As in the odd case, a common irreducible factor divides their difference \(2i=(1+i)^{2}\), so is an associate of \(1+i\). And \(1+i\) divides \(z+i=(z-1)+(1+i)\), as \(z-1\) is even, but \((1+i)^{2}=2i\) does not, as \(\frac {z+i}{2}\notin \Z [i]\).

So we run the argument of Theorem 2.12, keeping track of \(1+i\). Write \[ z+i=u(1+i)\prod _{j=1}^{r}\pi _{j}^{e_{j}} \] with \(u\) a unit, \(e_{j}\in \N \) and \(\pi _{j}\) irreducible, no two of them associates and none an associate of \(1+i\). Conjugating, \[ z-i=\bar {u}(1-i)\prod _{j=1}^{r}\bar {\pi }_{j}^{e_{j}}, \] and no \(\bar {\pi }_{k}\) is an associate of any \(\pi _{j}\), as otherwise it would be a common factor of \(z+i\) and \(z-i\) other than \(1+i\). Multiplying, and dividing by \(u\bar {u}(1+i)(1-i)=2\), \[ w^{3}=\prod _{j=1}^{r}\pi _{j}^{e_{j}}\bar {\pi }_{j}^{e_{j}}. \] All exponents in the factorisation of \(w^{3}\) are divisible by \(3\), so \(3\mid e_{j}\) for all \(j\). As \(u\) is a cube, \(z+i=(1+i)(a+bi)^{3}\) for some \(a,b\in \Z \).

Comparing imaginary parts in \(z+i=(1+i)(a+bi)^{3}\), \[ 1=(a^{3}-3ab^{2})+(3a^{2}b-b^{3})=(a-b)(a^{2}+4ab+b^{2}). \] Hence \(a-b=a^{2}+4ab+b^{2}=\pm 1\). If \(a=b+1\) then \(6b^{2}+6b+1=1\), so \(b=0\) or \(b=-1\); if \(a=b-1\) then \(6b^{2}-6b+1=-1\), which has no integer solutions. So \((a,b)=(1,0)\) or \((0,-1)\), giving \((a+bi)^{3}=1\) or \((a+bi)^{3}=i\). Then \(z+i=1+i\) or \(z+i=i-1\), so \(z=1\) or \(z=-1\). In either case \(w^{3}=\frac {z^{2}+1}{2}=1\), so \(w=1\), and \(x=2\), \(y=\pm 2\).

So the solutions with \(y\) even are \((x,y)=(2,\pm 2)\).

3 Sums of two squares

12.
(Wilson’s theorem) Let \(p\) be a prime. Show that \((p-1)!\equiv -1\bmod p\).
13.
\(\star \) Let \(\pi \in \Z [i]\) be irreducible. Show that \(\pi \) divides some prime \(p\in \Z \), and deduce that either \(\pi \in \{\pm p, \pm ip\}\) for some prime \(p\equiv 3\bmod 4\), or \(N(\pi )=p\) for some prime \(p\) with \(p=2\) or \(p \equiv 1 \bmod 4\).
Solution

As \(\Z [i]\) is a principal ideal domain, \(\pi \) is prime. Factorising the integer \(N(\pi )=\pi \bar {\pi }>1\) into primes of \(\Z \), \(\pi \) divides one of these factors. Thus there is a prime \(p \in \N \) with \(\pi \mid p\).

Then \(N(\pi )\mid N(p)=p^{2}\), and \(N(\pi )\neq 1\) as \(\pi \) is not a unit, so \(N(\pi )=p\) or \(N(\pi )=p^{2}\).

If \(N(\pi ) = p\) then \(p\) is a sum of two squares and so \(p = 2\) or \(p \equiv 1 \bmod 4\).

If \(N(\pi )=p^{2}\), then \(p/\pi \in \Z [i]\) has norm \(1\), so is a unit, and so \(p/\pi \) is one of \(\pm 1\) and \(\pm i\) by Exercise 3.2. Hence \(\pi =\pm p\) or \(\pm ip\). In particular \(p\) is irreducible in \(\Z [i]\), so by Proposition 3.3 it is not a sum of two squares, and so \(p\equiv 3\bmod 4\) by Theorem 3.5.

14.
\(\star \) Write \(9797 = 97 \times 101\) as a sum of two squares in two different ways.
Solution

We have \(97=9^{2}+4^{2}=N(9+4i)\) and \(101=10^{2}+1^{2}=N(10+i)\). As the norm is multiplicative, \begin{align*} 9797&=N((9+4i)(10+i)) \\ &=N(86+49i) \\ &=86^{2}+49^{2} \end{align*}

and \begin{align*} 9797&=N((9+4i)(10-i)) \\ &=N(94+31i) \\ &=94^{2}+31^{2}. \end{align*}

15.
You are given that the number \(p=281\) is prime, and \(53^{2}\equiv -1\bmod p\).
(a)
Use the Euclidean algorithm in \(\Z [i]\) to find a greatest common divisor \(\pi \) of \(281\) and \(53+i\). That is, divide with remainder until you reach zero; the last nonzero remainder is a greatest common divisor.
(b)
Compute \(N(\pi )\), and hence write \(281\) as a sum of two squares.
16.
(Exercise 3.9.) Let \(n\in \N \) and suppose that \[ n=\prod _{i=1}^{r}p_{i} \] where \(p_{1},\ldots ,p_{r}\) are distinct primes that are \(\equiv 1\bmod 4\), and \(r \ge 1\). Show that the number of pairs \(x, y \in \N \) such that \(x^{2}+y^{2}=n\) is \(2^{r}\).

4 Finite field extensions

17.
Let \(\sqrt [6]{2}\) denote the positive real sixth root of \(2\).
(a)
Show that \([\Q (\sqrt [6]{2}):\Q ]=6\).
(b)
Show that \(x^{3}-\sqrt {2}\) is irreducible over \(\Q (\sqrt {2})\).
18.
Let \(\alpha \in \C \) be algebraic over \(\Q \) and assume that its minimal polynomial over \(\Q \) has odd degree. Show that \(\Q (\alpha )=\Q (\alpha ^{2})\).
19.
\(\star \) Let \(L=\Q (\sqrt {2},i)\).
(a)
Show that \([L:\Q ]=4\).
(b)
Find \(\theta \in L\) such that \(L=\Q (\theta )\).
Solution

(a)
Set \(K=\Q (\sqrt {2})\) and note that \(K\subset \R \). As \(\sqrt {2}\) has minimal polynomial \(x^{2}-2\), we know that \([K:\Q ]=2\). By the Tower Theorem, \[ [L:\Q ]=[L:K]\cdot [K:\Q ]=2[L:K], \] so we need to compute \([L:K]\). Now \(L=\Q (\sqrt {2})(i)=K(i)\), and the polynomial \(x^{2}+1\) is irreducible over \(K\) because it has no roots in \(K\): its roots \(\pm i\) are not real. So \([K(i):K]=2\) and \([L:\Q ]=4\).
(b)
We claim that \(\theta =\sqrt {2}+i\) works. Certainly \(\Q (\theta )\subset L\). For the other inclusion we consider powers of \(\theta \). We have \[ \theta ^{2}=(\sqrt {2}+i)^{2}=1+2\sqrt {2}i \] and \[ \theta ^{3}=(\sqrt {2}+i)(1+2\sqrt {2}i)=\sqrt {2}+i+4i-2\sqrt {2}=5i-\sqrt {2}. \] Solving for \(\sqrt {2}\) and \(i\), \[ i=\frac {\theta +\theta ^{3}}{6}\in \Q (\theta )\qquad \text {and}\qquad \sqrt {2}=\frac {5\theta -\theta ^{3}}{6}\in \Q (\theta ). \] Hence \(L\subset \Q (\theta )\).
20.
Let \(L/F\) be a field extension, let \(\alpha \in L\) be algebraic over \(F\) with minimal polynomial \(p_{\alpha }(x)\), and let \(f(x)\in F[x]\) with \(f(\alpha )\neq 0\).
(a)
Show that there are \(a(x),b(x)\in F[x]\) with \[a(x)f(x)+b(x)p_{\alpha }(x)=1,\] and deduce that \[f(\alpha )^{-1}=a(\alpha ).\] Explain how to find \(a(x)\) using the Euclidean algorithm in \(F[x]\). This gives another proof that \(F[\alpha ]=F(\alpha )\); compare Lemma 4.11.
(b)
Let \(\alpha =\sqrt [3]{2} \in \R \). Write \(\frac {1}{1+\alpha ^{2}}\) in the form \(c_{0}+c_{1}\alpha +c_{2}\alpha ^{2}\) with \(c_{0},c_{1},c_{2}\in \Q \).
21.
\(\star \) Let \(K=\Q (\alpha )\) be a field of degree \(d\) over \(\Q \), where \(\alpha \in \C \). Let \(a,b\in \Q \) with \(b\neq 0\). Show that \[ N_{K/\Q }(a+b\alpha )=(-b)^{d}p_{\alpha }(-a/b). \]
Solution

Let \(T_{\alpha }\) be the matrix of \(\hat {\alpha }\) with respect to some basis of \(K\) over \(\Q \). By Lemma 4.19, \(T_{a+b\alpha }=aI+bT_{\alpha }\), so \begin{align*} N_{K/\Q }(a+b\alpha )&=\det (aI+bT_{\alpha })=\det \left (-b\left (-\tfrac {a}{b}I-T_{\alpha }\right )\right )\\ &=(-b)^{d}\chi _{\alpha }\left (-\tfrac {a}{b}\right )=(-b)^{d}p_{\alpha }\left (-\tfrac {a}{b}\right ), \end{align*}

since \(\chi _{\alpha }(x)=p_{\alpha }(x)\) by Lemma 4.20.

22.
\(\star \) Let \(\theta \in \C \) with \(\theta ^{3}=7\), and set \(K=\Q (\theta )\). Calculate \(\Tr _{K/\Q }(a+b\theta +c\theta ^{2})\) and \(N_{K/\Q }(a+b\theta +c\theta ^{2})\), where \(a,b,c\in \Q \).
Solution

The minimal polynomial of \(\theta \) is \(x^{3}-7\), which is irreducible by Eisenstein’s criterion at \(7\), so \([K:\Q ]=3\) with basis \(\{1,\theta ,\theta ^{2}\}\). Let \(\alpha =a+b\theta +c\theta ^{2}\). Using \(\theta ^{3}=7\), \begin{align*} \hat {\alpha }(1)&=a+b\theta +c\theta ^{2},\\ \hat {\alpha }(\theta )&=7c+a\theta +b\theta ^{2},\\ \hat {\alpha }(\theta ^{2})&=7b+7c\theta +a\theta ^{2}, \end{align*}

so \[ T_{\alpha }=\begin {pmatrix}a & 7c & 7b\\ b & a & 7c\\ c & b & a \end {pmatrix}. \] Hence \(\Tr _{K/\Q }(\alpha )=3a\) and \[ N_{K/\Q }(\alpha )=\det (T_{\alpha })=a^{3}+7b^{3}+49c^{3}-21abc. \]

23.
Let \(f(x)=x^{3}-2x-2\), let \(\theta \in \C \) be a root of \(f(x)\), and find the minimal polynomial of \(1+\theta +\theta ^{2}\) over \(\Q \).
24.
\(\star \) Let \(L=\Q (\sqrt {2},\sqrt {3})\) and \(K=\Q (\sqrt {3}) \subset L\).
(a)
Find the characteristic polynomial \(\chi _{\sqrt {2},L/\Q }(x)\).
(b)
Let \(\alpha =\frac {\sqrt {2}+\sqrt {6}}{2}\). Compute \(N_{L/K}(\alpha )\) and \(\Tr _{L/K}(\alpha )\).
(c)
Hence find \(N_{L/\Q }(\alpha )\) and \(\Tr _{L/\Q }(\alpha )\).
Solution

(a)
Use the basis \(1,\sqrt {2},\sqrt {3},\sqrt {6}\) of \(L\) over \(\Q \). Multiplication by \(\sqrt {2}\) sends \(1\mapsto \sqrt {2}\), \(\sqrt {2}\mapsto 2\), \(\sqrt {3}\mapsto \sqrt {6}\) and \(\sqrt {6}\mapsto 2\sqrt {3}\), so \[ T_{\sqrt {2},L/\Q }=\begin {pmatrix}0 & 2 & 0 & 0\\ 1 & 0 & 0 & 0\\ 0 & 0 & 0 & 2\\ 0 & 0 & 1 & 0 \end {pmatrix}. \] This is block diagonal, with two copies of the matrix \(\begin {pmatrix}0 & 2\\ 1 & 0\end {pmatrix}\), whose characteristic polynomial is \(x^{2}-2\). So \(\chi _{\sqrt {2},L/\Q }(x)=(x^{2}-2)^{2}\).

Alternatively, the minimal polynomial of \(\sqrt {2}\) over \(\Q \) is \(x^{2}-2\), and \([L:\Q (\sqrt {2})]=4/2=2\), so \(\chi _{\sqrt {2},L/\Q }(x)=(x^{2}-2)^{2}\) by Proposition 4.23.

(b)
Write \(\alpha =c\sqrt {2}\) with \(c=\frac {1+\sqrt {3}}{2}\in K\). Then \(\alpha \cdot 1=c\sqrt {2}\) and \(\alpha \cdot \sqrt {2}=2c\). Therefore, with respect to the basis \(1,\sqrt {2}\) of \(L\) over \(K\), \[ T_{\alpha ,L/K}=\begin {pmatrix}0 & 2c\\ c & 0 \end {pmatrix}. \] Thus \(\Tr _{L/K}(\alpha )=0\) and \(N_{L/K}(\alpha )=-2c^{2}=-(2+\sqrt {3})\).
(c)
By Theorem 4.24 and Example 4.17, \begin{align*} \Tr _{L/\Q }(\alpha )&=\Tr _{K/\Q }(0)=0,\\ N_{L/\Q }(\alpha )&=N_{K/\Q }(-2-\sqrt {3})=(-2)^{2}-3\cdot (-1)^{2}=1. \end{align*}

Alternatively, use the minimal polynomial of \(\alpha \). We have \(\alpha ^{2}=\frac {2+6+2\sqrt {12}}{4}=2+\sqrt {3}\), so \(\sqrt {3}=\alpha ^{2}-2\in \Q (\alpha )\), and then \(\sqrt {2}=\frac {2\alpha }{1+\sqrt {3}}\in \Q (\alpha )\). So \(L=\Q (\alpha )\) and \(\alpha \) has degree \(4\). From \((\alpha ^{2}-2)^{2}=3\), \(\alpha \) is a root of \(x^{4}-4x^{2}+1\), which is monic of degree \(4\), so it is the minimal polynomial of \(\alpha \). By Lemma 4.20 it is also \(\chi _{\alpha ,L/\Q }(x)\), so by equation (1) \(\Tr _{L/\Q }(\alpha )=0\) and \(N_{L/\Q }(\alpha )=1\).

5 Number fields and algebraic integers

25.
\(\star \) (Examples and non-examples of algebraic integers).
(a)
Find a monic polynomial \(f(x)\in \Z [x]\) which has \(\sqrt {3}+i\) as a root. Conclude that \(\sqrt {3}+i\) is an algebraic integer.
(b)
Which of the following are algebraic integers? \[ \frac {4}{17},\qquad \sqrt {2}+\sqrt {7},\qquad e^{2\pi i/3},\qquad \frac {\sqrt [3]{3}}{2},\qquad \frac {7+\sqrt {5}}{2}. \]
Solution

(a) Let \(\alpha =\sqrt {3}+i\). Then \(\alpha ^{2}=2+2\sqrt {3}i\), so \((\alpha ^{2}-2)^{2}=-12\), that is, \(\alpha ^{4}-4\alpha ^{2}+16=0\). So \(\alpha \) is a root of \(f(x)=x^{4}-4x^{2}+16\), which is monic with integer coefficients, and hence \(\alpha \) is an algebraic integer.

(b) As \(\frac {4}{17}\in \Q \setminus \Z \), it is not an algebraic integer, by Corollary 5.8.

Let \(\alpha =\sqrt {2}+\sqrt {7}\). Then \(\alpha ^{2}=9+2\sqrt {14}\), so \((\alpha ^{2}-9)^{2}=56\), and \(\alpha \) is a root of the monic polynomial \(x^{4}-18x^{2}+25\in \Z [x]\). So \(\alpha \) is an algebraic integer.

As \((e^{2\pi i/3})^{3}=1\), \(e^{2\pi i/3}\) is a root of \(x^{3}-1\), and so is an algebraic integer.

Let \(\alpha =\frac {\sqrt [3]{3}}{2}\). Then \(8\alpha ^{3}=3\), so \(\alpha \) is a root of \(x^{3}-\frac {3}{8}\). This is irreducible over \(\Q \), as \(8x^{3}-3\) is irreducible by Eisenstein’s criterion at \(3\), so \(p_{\alpha }(x)=x^{3}-\frac {3}{8}\notin \Z [x]\). By Theorem 5.7, \(\alpha \) is not an algebraic integer.

Let \(\alpha =\frac {7+\sqrt {5}}{2}\). Then \((2\alpha -7)^{2}=5\), so \(\alpha ^{2}-7\alpha +11=0\), and \(\alpha \) is a root of a monic polynomial in \(\Z [x]\). So \(\alpha \) is an algebraic integer.

26.
Let \(f(x)\in \Z [x]\) be a monic polynomial of degree at least \(1\), and let \(\alpha \in \bar {\Q }\). Show that \(f(\alpha )\in \bar {\Z }\) if and only if \(\alpha \in \bar {\Z }\).
27.
Let \(K\) be a number field and let \(I\) be a non-zero ideal of \(\cO _{K}\). Show that \(I\cap \Z \) is a non-zero ideal of \(\Z \).
28.
\(\star \) Let \(K=\Q (\theta )\), where \(\theta \in \C \) satisfies \(\theta ^{3}+\theta ^{2}-2\theta -4=0\), and let \(\alpha =\frac {\theta ^{2}+\theta }{2}\).
(a)
Show that \(\alpha \in \cO _{K}\). (Hint: find its characteristic polynomial.)
(b)
Find the minimal polynomial of \(\alpha \) over \(\Q \).
(c)
Show that \(\alpha \in \cO _{K}^{\times }\).
Solution

(a) By the rational root test, any rational root of \(f(x)=x^{3}+x^{2}-2x-4\) is one of \(\pm 1\), \(\pm 2\) and \(\pm 4\), and none of these is a root. So \(f(x)\) is an irreducible cubic, \([K:\Q ]=3\), and \(1,\theta ,\theta ^{2}\) is a basis of \(K\) over \(\Q \). Using \(\theta ^{3}=-\theta ^{2}+2\theta +4\), \begin{align*} \alpha \cdot 1&=\tfrac {1}{2}\theta +\tfrac {1}{2}\theta ^{2},\\ \alpha \cdot \theta &=\tfrac {1}{2}(\theta ^{3}+\theta ^{2})=2+\theta ,\\ \alpha \cdot \theta ^{2}&=2\theta +\theta ^{2}, \end{align*}

so \begin{align*} T_{\alpha }&=\begin {pmatrix}0 & 2 & 0\\ \frac {1}{2} & 1 & 2\\ \frac {1}{2} & 0 & 1 \end {pmatrix},\\ \chi _{\alpha }(x)&=\det (xI-T_{\alpha })=x^{3}-2x^{2}-1. \end{align*}

As \(\alpha \) is a root of \(\chi _{\alpha }(x)\), which is monic with integer coefficients, \(\alpha \) is an algebraic integer, and so \(\alpha \in \cO _{K}\).

(b) \(\alpha \notin \Q \), since otherwise \(\theta \) would be a root of the quadratic \(x^{2}+x-2\alpha \in \Q [x]\), contradicting \([\Q (\theta ):\Q ]=3\). So \(\Q (\alpha )\) is a subfield of \(K\) strictly containing \(\Q \), and as \([K:\Q ]=3\) is prime, the Tower Theorem gives \(\Q (\alpha )=K\). By Lemma 4.20, the minimal polynomial of \(\alpha \) is \(\chi _{\alpha }(x)=x^{3}-2x^{2}-1\). (Alternatively, this cubic has no rational root, as neither \(1\) nor \(-1\) is a root, so it is irreducible.)

(c) By equation (1), \(N_{K}(\alpha )=-\chi _{\alpha }(0)=1\), so \(\alpha \in \cO _{K}^{\times }\) by Lemma 5.13. Explicitly, \(\alpha ^{3}-2\alpha ^{2}=1\), so \(\alpha ^{-1}=\alpha ^{2}-2\alpha \in \cO _{K}\).

29.
\(\dagger \) Let \(K\) be a number field.
(a)
Let \(\alpha \in \bar {\Z }\). Show that \(p_{\alpha ,K}(x)\in \cO _{K}[x]\). (Hint: consider the roots of \(p_{\alpha ,K}(x)\).)
(b)
Let \(L/K\) be an extension of number fields and let \(\alpha \in \cO _{L}\). Show that \(\chi _{\alpha ,L/K}(x)\in \cO _{K}[x]\), and deduce that \(N_{L/K}(\alpha )\) and \(\Tr _{L/K}(\alpha )\) lie in \(\cO _{K}\).
30.
Let \(p\) be an odd prime, let \(\zeta \neq 1\) be a complex number with \(\zeta ^{p}=1\), and let \(R=\Z [\zeta ]\). Show that \[ \frac {1-\zeta ^{i}}{1-\zeta ^{j}}\in R^{\times } \] for all integers \(i\) and \(j\) not divisible by \(p\). (Hint: show that if \(i\equiv kj\bmod p\), then \(\frac {1-\zeta ^{i}}{1-\zeta ^{j}}=\frac {1-(\zeta ^{j})^{k}}{1-\zeta ^{j}}\), and that the latter lies in \(R\).)
Solution

As \(\zeta \neq 1\) and \(\zeta ^{p}=1\) with \(p\) prime, \(\zeta \) has order \(p\), so \(\zeta ^{i}\neq 1\) and \(\zeta ^{j}\neq 1\). It is enough to show that \(\frac {1-\zeta ^{i}}{1-\zeta ^{j}}\in R\), because then by symmetry its inverse \(\frac {1-\zeta ^{j}}{1-\zeta ^{i}}\) also lies in \(R\).

As \(p\nmid j\), \(j\) is invertible modulo \(p\), so there is an integer \(k\) with \(1\leq k\leq p-1\) and \(i\equiv kj\bmod p\). As \(\zeta ^{p}=1\), this gives \(\zeta ^{i}=(\zeta ^{j})^{k}\), so \[ \frac {1-\zeta ^{i}}{1-\zeta ^{j}}=\frac {1-(\zeta ^{j})^{k}}{1-\zeta ^{j}}=1+\zeta ^{j}+(\zeta ^{j})^{2}+\dots +(\zeta ^{j})^{k-1}, \] which lies in \(R\) as \(\zeta \in R\).

31.
Let \(K=\Q (\sqrt [3]{2},\sqrt [3]{3})\) and \(\theta =\frac {1+\sqrt [3]{2}}{\sqrt [3]{3}}\). Show that \(\theta \in \cO _{K}^{\times }\).
32.
(Exercise 5.15) Let \(d,e\neq 1\) be squarefree integers with \(\Q (\sqrt {d})=\Q (\sqrt {e})\). Show that \(d=e\).
33.
\(\star \) Let \(K=\Q (\sqrt {-3})\).
(a)
Find \(\cO _{K}\) and \(\cO _{K}^{\times }\).
(b)
Show that \(\cO _{K}\) is a Euclidean domain.
(c)
Show that \(\Z [\sqrt {-3}]\) is not a UFD.
Solution

(a) As \(-3\equiv 1\bmod 4\), Theorem 5.18 gives \(\cO _{K}=\Z [\omega ]\) with \(\omega =\frac {1+\sqrt {-3}}{2}\).

By Lemma 5.13, \(\alpha \in \cO _{K}\) is a unit if and only if \(N_{K}(\alpha )=\pm 1\). By Lemma 5.17, every \(\alpha \in \cO _{K}\) has the form \(\alpha =\frac {r+s\sqrt {-3}}{2}\) with \(r,s\in \Z \), and then \(N_{K}(\alpha )=\frac {r^{2}+3s^{2}}{4}\geq 0\) by Example 4.17. So \(\alpha \) is a unit if and only if \(r^{2}+3s^{2}=4\), that is, \((r,s)=(\pm 2,0)\) or \((\pm 1,\pm 1)\). Hence \[ \cO _{K}^{\times }=\Big \{\pm 1,\frac {\pm 1\pm \sqrt {-3}}{2}\Big \}=\{\pm 1,\pm \omega ,\pm \omega ^{2}\}, \] (as \(\omega ^{2}=\frac {-1+\sqrt {-3}}{2}\)). This is a cyclic group of order 6, generated by \(\omega \).

(b) We show that \(N=N_{K}\) is a Euclidean function. For \(x,y\in \Q \), \(x+y\omega =\left (x+\frac {y}{2}\right )+\frac {y}{2}\sqrt {-3}\), so by Example 4.17, \[ N(x+y\omega )=\Big (x+\frac {y}{2}\Big )^{2}+\frac {3}{4}y^{2}=x^{2}+xy+y^{2}. \] The norm is multiplicative, and is a positive integer on non-zero elements of \(\cO _{K}\). So if \(\alpha ,\gamma \in \cO _{K}\) are non-zero then \(N(\gamma )\geq 1\) and \(N(\alpha \gamma )\geq N(\alpha )\).

For division with remainder, let \(\alpha ,\beta \in \cO _{K}\) with \(\beta \neq 0\). As \(1,\omega \) is a basis of \(K\) over \(\Q \), we may write \(\frac {\alpha }{\beta }=s+t\omega \) with \(s,t\in \Q \). Choose \(x,y\in \Z \) with \(|s-x|\leq \frac {1}{2}\) and \(|t-y|\leq \frac {1}{2}\), and set \(q=x+y\omega \) and \(r=\alpha -q\beta \). Then \(r=(e+f\omega )\beta \) with \(e=s-x\) and \(f=t-y\), so \[ N(r)=(e^{2}+ef+f^{2})N(\beta )\leq \tfrac {3}{4}N(\beta )<N(\beta ), \] as each of \(e^{2}\), \(ef\) and \(f^{2}\) is at most \(\frac {1}{4}\).

(c) In \(R = \Z [\sqrt {-3}]\) we have \(4=2\cdot 2=(1+\sqrt {-3})(1-\sqrt {-3})\). Each of \(2\) and \(1\pm \sqrt {-3}\), which have norm \(4\), is irreducible: a factorisation of any of them into two non-units would have to use factors of norm \(2\), but \(R\) has no elements of norm 2 as \(a^2 + 3b^2 = 2\) has no integer solutions. Since the units of \(R\) are \(\pm 1\) (the norm 1 elements), and \(2 \ne \pm 1 \cdot (1\pm \sqrt {-3})\), these are two different factorisations into irreducibles.

(In \(\cO _{K}\) there is no contradiction: \(1+\sqrt {-3}=2\omega \), and \(\omega \) is a unit by part (a), so the factorisations are the same up to units.)

6 Legendre symbols and quadratic reciprocity

34.
\(\star \) Determine whether the following two congruences have solutions. You may assume that \(383\) and \(1009\) are prime.
(a)
\(x^{2}\equiv 290\bmod 383\).
(b)
\(x^{2}\equiv 385\bmod 1009\).
35.
\(\star \) Find all odd primes \(p\) such that \(\frac {p-1}{2}\) is a square modulo \(p\).
36.
Let \(q\) be a prime with \(q\equiv 3\bmod 4\) such that \(p=2q+1\) is also prime. Show that \(p\) divides \(2^{q}-1\).
37.
\(\star \) Let \(a\) be a non-zero integer, and let \(p\) and \(q\) be odd primes, neither dividing \(a\), with \(p\equiv q\bmod 4|a|\). Show that \[ \legendre {a}{p}=\legendre {a}{q}. \] (In other words, as claimed at the start of Section 6, whether \(a\) is a quadratic residue modulo an odd prime \(p\nmid a\) depends only on \(p\) modulo \(4|a|\).)
38.
Let \(p\) be an odd prime and let \(a\in \Z \) with \(p\nmid a\). For \(k=1,\ldots ,\frac {p-1}{2}\), let \(r_{k}\) be the integer with \(ka\equiv r_{k}\bmod p\) and \(-\frac {p-1}{2}\leq r_{k}\leq \frac {p-1}{2}\), and let \(\mu \) be the number of \(k\) for which \(r_{k}<0\).
(a)
Show that \(|r_{1}|,\ldots ,|r_{(p-1)/2}|\) are \(1,\ldots ,\frac {p-1}{2}\) in some order.
(b)
Show that \(\legendre {a}{p}=(-1)^{\mu }\). (Hint: multiply the congruences \(ka\equiv r_{k}\bmod p\) together.)
(c)
Deduce the supplementary law for \(\legendre {2}{p}\).

The result of part (b) is known as Gauss’s Lemma, not to be confused with Gauss’s Lemma concerning factorisation of polynomials. It can also be used as the basis of a proof of quadratic reciprocity.

39.
Let \(p\) be a prime other than \(2\) and \(3\). Show that \(p=a^{2}+3b^{2}\) for some \(a,b\in \Z \) if and only if \(p\equiv 1\bmod 3\). (Hint: work in \(\cO _{K}\), where \(K=\Q (\sqrt {-3})\). You may need to use that \(N_{K}(\pi u)=N_{K}(\pi )\) for \(\pi \in \cO _{K}\) and \(u \in \cO _K^\times \).)
40.
(a)
Let \(n\in \Z \), and let \(p\neq 2,3\) be a prime dividing \(n^{2}+3\). Show that \(p\equiv 1\bmod 3\).
(b)
Deduce that there are infinitely many primes \(p\) such that \(p\equiv 1\bmod 3\). (Hint: if \(p_{1},\ldots ,p_{k}\) is a list of all such primes, consider \(4(p_{1}\cdots p_{k})^{2}+3\).)
41.
(Exercise 6.13) Recall that \(G_{q}\) denotes the Gauss sum (Definition 6.11). Show that \(G_{3}=i\sqrt {3}\) and \(G_{5}=\sqrt {5}\).
42.
\(\star \) (Gauss sums of characters). Let \(p\) be an odd prime and \(\zeta =\zeta _{p}=e^{2\pi i/p}\). A character modulo \(p\) is a group homomorphism \(\chi :\F _{p}^{\times }\to \C ^{\times }\). We write \(\chi (a)=\chi (\bar {a})\) for \(a\in \Z \) with \(p\nmid a\), and define the Gauss sum \[ G(\chi )=\sum _{a=1}^{p-1}\chi (a)\zeta ^{a}. \] The trivial character \(\chi _{0}\) has \(\chi _{0}(a)=1\) for all \(a\).
(a)
Show that \(|\chi (a)|=1\) for \(a\in \F _{p}^{\times }\), and deduce that \(\overline {\chi (a)}=\chi (a^{-1})\).
(b)
Show that if \(\chi \neq \chi _{0}\), then \(\sum _{a=1}^{p-1}\chi (a)=0\). (Hint: multiply by \(\chi (b)\) for suitable \(b\).)
(c)
Show that if \(\chi \neq \chi _{0}\), then \(|G(\chi )|^{2}=p\).

7 Units in quadratic rings, and Pell’s equation

43.
\(\star \) Find the fundamental units of \(\Q (\sqrt {d})\) for \(d=6\), \(30\), \(34\) and \(53\).
44.
Use a unit in \(\Z [\sqrt {30}]\) to prove that the difference between \(\frac {241}{44}\) and \(\sqrt {30}\) is less than \(5\times 10^{-5}\).
45.
Show that \(500+53\sqrt {89}\) is the fundamental unit of \(\Z [\sqrt {89}]\). (Hint: argue by contradiction.)
46.
\(\star \) Give formulae for all the solutions \((x,y)\in \Z \times \Z \) (if any) to
(a)
\(x^{2}-6y^{2}=1\);
(b)
\(x^{2}-6y^{2}=-1\);
(c)
\(x^{2}-6y^{2}=5\);
(d)
\(x^{2}-6y^{2}=-5\).

You may assume that \(\Z [\sqrt {6}]\) is a PID.

47.
Give formulae for all the solutions \((x,y)\in \Z \times \Z \) (if any) to \(x^{2}-13y^{2}=-1\).
48.
Let \(d\) be a positive non-square integer and let \(u\) be the fundamental unit of \(\Z [\sqrt {d}]\). Let \(n\in \N \).
(a)
Show that the fundamental unit of \(\Z [n\sqrt {d}]\) is \(u^{m}\) for some \(m\in \N \).
(b)
Suppose that \(n\geq 2\). By considering the powers of \(u\) modulo \(n\), or otherwise, show that \(m<n^{2}\).
49.
Let \(d>1\) be a squarefree integer and \(K=\Q (\sqrt {d})\). Let \(\theta =\sqrt {d}\) if \(d\equiv 2,3\bmod 4\) and \(\theta =\frac {1+\sqrt {d}}{2}\) if \(d\equiv 1\bmod 4\), so that \(\cO _{K}=\Z [\theta ]=\{a+b\theta \mid a,b\in \Z \}\) by Theorem 5.18.
(a)
Let \(f\in \N \). Show that \(\Z [f\theta ]=\{a+bf\theta \mid a,b\in \Z \}\), and that it is a quadratic ring in \(K\).
(b)
Let \(R\) be a quadratic ring in \(K\). Show that \(R=\Z [f\theta ]\) for exactly one \(f\in \N \). (Hint: consider \(\{b\in \Z \mid b\theta \in R\}\).)
50.
\(\star \) Let \(d>1\) be a squarefree integer and \(K=\Q (\sqrt {d})\).
(a)
Suppose that \(d\) has a prime factor \(p\equiv 3\bmod 4\). Show that \(x^{2}-dy^{2}=-1\) has no solutions with \(x,y\in \Z \), and that no unit of \(\cO _{K}\) has norm \(-1\).
(b)
Show that the converse of part (a) is false, by considering \(d=34\).
51.
\(\dagger \) (Legendre) Let \(p\) be a prime with \(p\equiv 1\bmod 4\). Show that the equation \[x^{2}-py^{2}=-1\] has a solution with \(x,y\in \Z \). (Hint: show that if \(u>1\) is a unit of \(\Z [\sqrt {p}]\) of norm \(1\), then there is another unit \(v\) with \(u>v>1\).)