University Mathematics — Year 3 · Bachelor Year 3
2Rings and Arithmetic
Ordinary integers factor uniquely into primes; so do polynomials over a field. Are these two facts one theorem? This chapter answers yes, and finds the exact hypotheses that make an “arithmetic” possible in a commutative ring: the chain
with all implications proved and all converses refuted. The theory is then tested where it earns its keep: the Gaussian integers (which will crack Fermat’s two-squares theorem in the weekend problem), polynomial rings in several variables (Gauss’s lemma, Eisenstein’s criterion), and Noetherian rings, culminating in Hilbert’s basis theorem. Throughout, ring means commutative ring with unit ; the Year 2 volume’s ideals of and are our two guiding examples.
2.1 Ideals, quotients, and the isomorphism theorem
Definition 2.1
An ideal of a ring is an additive subgroup such that . The quotient ring is the quotient group with the multiplication : well defined, since changing to , to () changes by . The projection is a surjective ring morphism with kernel , and kernels of ring morphisms are exactly the ideals.
Theorem 2.2 (First isomorphism theorem)
If is a ring morphism, then , , is a ring isomorphism. More generally factors through for any ideal . The ideals of are the for an ideal of (correspondence theorem).
Proof. As for groups (Theorems 1.3 and 1.5), noting that all maps in sight also respect products: is well defined, bijective onto the image, and multiplicative; the correspondence , preserves ideals in both directions because is a surjective ring morphism. ∎
Definition 2.3
Let be a proper ideal. is prime if or ; is maximal if no ideal lies strictly between and .
Proposition 2.4
is prime is an integral domain; is maximal is a field. In particular maximal ideals are prime.
Proof. Write for classes in . “ prime” translates verbatim to “ or ”, and to : that is the definition of a domain. For maximality, use the correspondence theorem: no ideal strictly between and has no ideal other than and itself is a field — for the last step: in a field the only ideals are and everything (an ideal containing contains ); conversely if every nonzero generates the unit ideal, then for some . Fields are domains, so maximal ideals are prime. ∎
Example 2.5
In : the prime ideals are and the , prime; the maximal ones are the ( is a field, is not). In : are both prime (, a domain; , a field), so is prime but not maximal.
To guarantee that maximal ideals exist in full generality, we need a set-theoretic principle. A partially ordered set is inductive if every totally ordered subset (chain) has an upper bound.
Theorem 2.6 (Zorn’s lemma)
Every nonempty inductive partially ordered set has a maximal element.
Proof. Admitted at this level. ∎
Remark 2.7
This is not a theorem of ordinary mathematics but an axiom: it is equivalent, over the basic Zermelo–Fraenkel axioms of set theory, to the axiom of choice (“every product of nonempty sets is nonempty”), which we accept throughout this book. We flag each use. Analysis will invoke it again (Hahn–Banach, Chapter 8).
Theorem 2.8 (Krull)
Every proper ideal is contained in a maximal ideal.
Proof. Order by inclusion the set of proper ideals containing ; it is nonempty (). A chain in has upper bound : an ideal (any lie in a common by totality), proper ( for all ), containing . Zorn’s lemma yields a maximal element of , which is a maximal ideal containing (an ideal strictly above it and proper would lie in ). ∎
Theorem 2.9 (Chinese remainder theorem)
Let be pairwise comaximal ideals of ( for ). Then
and moreover (the ideal generated by products).
Proof. The map is a ring morphism with kernel ; by Theorem 2.2 it suffices to prove surjectivity. Fix ; for each write with , (comaximality). Then
so ; given a target , the element maps to it.
Products vs intersection: always. Conversely, by induction it suffices to treat (one checks and are comaximal: multiplying over gives ). For : write , , ; for , . ∎
Example 2.10
In with , pairwise coprime: — the Year 2 volume’s Chinese remainder theorem. Restricting to units: for , whence the multiplicativity of Euler’s (Exercise 2.8).
2.2 Divisibility: Euclidean, principal, factorial
Definition 2.11
Let be an integral domain, . We say divides () if . Elements are associates if with (equivalently ). A nonzero nonunit is:
- irreducible if forces or ;
- prime if forces or (i.e. the ideal is prime).
Proposition 2.12
In any domain, prime irreducible. The converse is false in general: in , the element is irreducible but not prime.
Proof. Let be prime and . Then , say : , so , and cancelling (domain!) gives : .
In , use the norm , which is multiplicative (it is ). If with nonunits, then with (norm- elements are , the units), so : impossible, has no integer solution. So is irreducible. But while divides neither factor (): not prime. ∎
Definition 2.13
An integral domain is:
- Euclidean if there is a map (a Euclidean function) such that for all with there exist with and ( or );
- principal (a PID) if every ideal is of the form ;
- factorial (a UFD) if every nonzero nonunit is a product of irreducibles, uniquely up to order and associates.
Theorem 2.14
Euclidean principal.
Proof. Let be an ideal and with minimal. For , divide: ; then , and would contradict minimality, so and : . ∎
Example 2.15
(with ) and (with ) are Euclidean — the Year 2 volume proved both divisions. So is , with the square norm (Exercise 2.4); the geometry of the proof is in the figure below. A PID that is not Euclidean exists but is delicate to certify (the standard example is ); a UFD that is not a PID is easy: (Exercise 2.6), or .
Lemma 2.16 (Ascending chains of principal ideals)
In a PID, every increasing sequence of ideals is eventually constant.
Proof. is an ideal (the union is increasing), so ; the element lies in some , and then for . ∎
Lemma 2.17 (Bézout; Euclid’s lemma)
Let be a PID and . Then for some , a greatest common divisor: , , and every common divisor of divides ; moreover for some (Bézout). Consequently every irreducible element of a PID is prime.
Proof. is an ideal, hence ; gives ; and . A common divisor of divides .
Euclid: let be irreducible, , . A gcd of and divides , so is a unit or an associate of (irreducibility); associate is excluded by . So , whence , and divides both terms: . ∎
Theorem 2.18
Principal factorial.
Proof. Existence. Suppose some nonzero nonunit has no factorization into irreducibles. Then is not irreducible: with both factors nonunits; at least one of them, say , again has no factorization (a product of two factorizable elements is factorizable). Iterating, we get , each a proper divisor of the last with no factorization, so — the inclusions are strict because with a nonunit means would force (cancel in a domain). This contradicts Lemma 2.16.
Uniqueness. Let with all factors irreducible, , by induction on . The prime (Lemma 2.17) divides the right-hand side, so divides some ; renumber . As is irreducible and is not a unit, with : are associates. Cancel : and conclude by induction ( forces : a unit times irreducibles cannot be ). ∎
Remark 2.19
In a UFD, gcds exist (take minimal exponents in the factorizations) and Euclid’s lemma holds — irreducible prime (Exercise 2.2) — but Bézout may fail: in , yet (evaluate at : , impossible). Bézout identities are the exclusive property of PIDs.
Example 2.20 (A ring without unique factorization)
None of the implications Euclidean PID UFD is an equivalence, and the failure of the last is worth seeing once in complete detail. In
the norm is multiplicative and iff . Consider
All four factors are irreducible: their norms are , and a proper factorization would force — but never equals or ( leaves the non-squares ; gives ). Yet is associate to neither (norms ): two genuinely different factorizations of into irreducibles. Equivalently, irreducible prime here: divides the product but neither factor (norms again). The ideal-theoretic repair of this failure — factorizing ideals rather than elements — is the birth of algebraic number theory; at our level, the example calibrates how special the Euclidean rings , , of this chapter really are.
Method 2.21
To identify a quotient ring , hunt for a surjective morphism with kernel and invoke Theorem 2.2; when is a polynomial ring, is usually an evaluation. Thus (evaluate at ), (evaluate at ), . To show prime or maximal, show the quotient is a domain or a field (Proposition 2.4).
2.3 Polynomials over a UFD: Gauss and Eisenstein
Throughout this section is a UFD with fraction field (constructed as the field of formal quotients , , exactly like from ; the Year 2 volume did this construction for , and it transfers verbatim). Our goal: factoriality passes from to , and irreducibility over is essentially irreducibility over the bigger field .
Definition 2.22
The content of a nonzero is a gcd of its coefficients (defined up to a unit); is primitive if . Every writes with primitive, and every writes with and primitive (clear denominators, then factor out the content).
Lemma 2.23 (Gauss)
The product of two primitive polynomials of is primitive; consequently up to units.
Proof. Let be primitive and suppose some irreducible (= prime, UFD) divides all coefficients of . Reduce modulo : in , . But is a domain ( prime), so is a domain (leading coefficients multiply), forcing or : divides all coefficients of or all of , contradicting primitivity. For the consequence, write , : with primitive. ∎
Theorem 2.24
Let be a UFD with fraction field .
- A primitive of degree is irreducible in iff it is irreducible in .
- is a UFD; its irreducibles are the irreducibles of and the primitive polynomials irreducible over . In particular , and by induction and , are UFDs.
Proof. (1) () If in with nonunits, then neither factor is constant (a constant factor of a primitive polynomial is a unit), so the factorization is proper in . () Suppose with of degrees . Write , with primitive: , and is primitive by Gauss. Taking contents, (both sides have unit content; formally, up to units, and in particular ): is a proper factorization in .
(2) Existence: given nonunit, factor , factor into irreducibles of , and factor in the UFD as with irreducible; writing with primitive (hence irreducible over , hence in by (1)), the product is a unit of as before, and . Uniqueness: compare a factorization’s constant part and polynomial part; the constants multiply to (Gauss), unique by factoriality of ; the polynomial parts give two factorizations in of the same polynomial, so they match up to constants of (factoriality of , Theorem 2.18), and matching primitive polynomials associated in are associated in : if with primitive and , then taking contents forces . ∎
Theorem 2.25 (Irreducibility criteria)
Let be a UFD, its fraction field, and primitive of degree .
- (Reduction) If is prime, , and the reduction is irreducible in , then is irreducible in (hence in ).
- (Eisenstein) If some prime satisfies , for , and , then is irreducible in (hence in ).
Proof. By Theorem 2.24(1), a proper factorization over yields with , (constants are excluded: they would be units or spoil primitivity).
(1) Reduce mod : in . Since and can only drop under reduction, and (their leading coefficients multiply to , so neither drops): factors properly — contradiction.
(2) Reduce mod : (all lower coefficients die). In the domain , the factorizations of () are into constants and pure powers : indeed if , and say had a nonzero coefficient in degree , take lowest nonzero terms: (domain), which must equal , forcing for both: both are monomials. As above, degrees do not drop, so and have their constant terms divisible by — both, since both reductions are monomials of degree . Then : contradiction. ∎
Example 2.26
is irreducible over for every prime and (Eisenstein at ): there are irreducible polynomials of every degree over — in stark contrast with (degree , d’Alembert–Gauss, proved in Chapter 16) and (degrees ). The trick of shifting enlarges Eisenstein’s reach: the -th cyclotomic polynomial has
Eisenstein at ( for , and ): , hence , is irreducible over . This is the algebraic heart of the -gon story told in Chapter 4.
Method 2.27
To prove irreducible over : (i) make primitive; (ii) try Eisenstein, on and on shifts ; (iii) try reduction modulo small primes not dividing the leading coefficient — irreducibility mod one suffices, and over irreducibility is a finite check (no roots excludes degree- factors; then test the finitely many factors of each degree ); (iv) if all else fails, undetermined coefficients. Beware: reducibility mod every does not imply reducibility over (Exercise 2.11).
2.4 Noetherian rings
Definition 2.28
A ring is Noetherian if every ideal of is finitely generated.
Proposition 2.29
is Noetherian iff every increasing sequence of ideals is eventually constant (ascending chain condition), iff every nonempty family of ideals has a maximal element (for inclusion).
Proof. (FG ACC): for a chain , the union is an ideal, generated by ; all lie in some , so for . (ACC maximal elements): if a nonempty family had no maximal element, pick , then inductively in (possible since is not maximal): an infinite strictly increasing chain. (This uses the axiom of dependent choices, a weak form of choice we do not fuss over.) (Maximal elements FG): given an ideal , the family of finitely generated ideals contained in is nonempty (); a maximal element must equal : otherwise, adding to the generators produces a strictly bigger member of the family. ∎
Theorem 2.30 (Hilbert’s basis theorem)
If is Noetherian, so is . Hence so are , and every quotient of them.
Proof. Let be an ideal of , and suppose is not finitely generated. Build a sequence: of minimal degree, and inductively of minimal degree (the set is nonempty by assumption). Degrees are nondecreasing (by minimality of each choice: was available at step ... precisely, , so competed at step and lost or tied: ). Let be the leading coefficient of . The chain of ideals stabilizes: for some , say . Consider
Then (the sum lies in the ideal, does not), yet the coefficient of degree cancels: , contradicting the minimality of .
Iterating, is Noetherian; a quotient is Noetherian because its ideals lift to ideals of (correspondence), where finitely many generators project onto generators. ∎
Remark 2.31
Noetherianity is the finiteness axiom of algebraic geometry: any system of polynomial equations in variables, however infinite, is equivalent to finitely many of them — its solution set is cut out by finitely many polynomials. PIDs are Noetherian (trivially); in infinitely many variables is not (). Non-Noetherian rings also occur naturally in analysis: continuous functions on form one (Exercise 2.10).
2.5 Exercises
Exercise 2.1 ★
Identify the quotients: (a) ; (b) ; (c) is a field with elements — write its multiplication table.
Solution
Solution of Exercise 2.1.
(a) Evaluation , , is a surjective ring morphism (). Kernel: divide by the monic in : with ; then iff . So and Theorem 2.2 concludes.
(b) The same computation with -coefficients: — this is the cleanest construction of .
(c) has no root in (), so, having degree , it is irreducible: the quotient is a field (Proposition 2.4; maximal in when is irreducible, since is a PID: an ideal means ). Its four elements are where , with . Multiplication table (nonzero elements):
The nonzero elements form a cyclic group of order generated by .
Exercise 2.2 ★
(a) Show that in a UFD, every irreducible element is prime. (b) Show that a finite integral domain is a field. (c) Deduce that in a finite ring, every prime ideal is maximal.
Solution
Solution of Exercise 2.2.
(a) Let be irreducible in a UFD and , say , with (else trivial). If or is a unit, divides the other. Otherwise factor , and into irreducibles: the two factorizations of ,
must agree up to order and associates: is an associate of some irreducible factor of or of , hence divides it.
(b) Let be a finite domain and . The map is injective (), hence surjective ( finite): for some .
(c) If is prime in a finite ring , then is a finite domain, hence a field by (b), so is maximal (Proposition 2.4).
Exercise 2.3 ★
In : check that , and are irreducible, that , and conclude again (after Proposition 2.12) that is not a UFD. Where exactly does uniqueness fail?
Solution
Solution of Exercise 2.3.
Norms: , , . The equations and have no integer solutions, so no element has norm or . A proper factorization of would need two factors of norm : impossible — is irreducible. A proper factorization of (norm ) would need factors of norms : impossible. Same for (norm : factors would have norm ). Now
two factorizations into irreducibles. They are genuinely different: the units are (norm ), and . So uniqueness fails — while existence of factorizations holds in (Exercise 2.10(c)): non-factoriality here is purely a uniqueness failure. (Consistently, Proposition 2.12: these irreducibles are not prime.)
Exercise 2.4 ★★
(a) Show that is Euclidean for the norm : given , choose nearest to . (b) Determine . (c) Same questions for and . Why does the same argument fail for ?
Solution
Solution of Exercise 2.4.
(a) Let , , and . Choose integers with , , and set , . Then
So is a Euclidean function ( or ).
(b) If then with : , i.e. : ; conversely these are units.
(c) For : the same rounding gives : Euclidean; units: gives . For the bound becomes : the rounding argument fails — and must fail, since is not even a UFD (Exercise 2.3), while Euclidean would imply UFD (Theorems 2.14 and 2.18).
Exercise 2.5 ★★
Let be a ring. (a) Show that if is nilpotent ( for some ) then . (b) Show that if is a domain, ; give a counterexample over . (c) Show that a domain has no idempotents () other than , and none nilpotent other than .
Solution
Solution of Exercise 2.5.
(a) If :
(b) In a domain, ; forces and : . Over : , so is a unit of degree (here is nilpotent; compare (a)).
(c) gives , so in a domain. If with minimal and , then and with both factors nonzero: contradiction.
Exercise 2.6 ★★
In : (a) show that the ideal is maximal but not principal — so is a UFD (Theorem 2.24) that is not a PID; (b) identify and as subrings of rational functions; (c) is prime? maximal?
Solution
Solution of Exercise 2.6.
(a) (evaluate at ): a field, so is maximal. If : forces (degrees in ) , and then forces ; is absurd and would give , contradicting properness (). So is not principal.
(b) Evaluation maps onto ; its kernel is : dividing by the monic-in- polynomial , , and . So — the coordinate ring of a parabola, isomorphic to a line’s.
Evaluation maps onto the ring of Laurent polynomials. Its kernel contains ; conversely, modulo every class has a representative (replace each product by repeatedly), and forces all . Hence — the coordinate ring of a hyperbola: the line with one point removed.
(c) is prime (the quotient is a domain) but not maximal ( is not a field; concretely ).
Exercise 2.7 ★★
Irreducible or not over : ; (reduce mod ); ; (shift by ); .
Solution
Solution of Exercise 2.7.
: Eisenstein at (; ; ): irreducible. (At Eisenstein fails: .)
: reduce mod . No root in ; the only irreducible quadratic over is , and . So is irreducible over , hence over (Theorem 2.25(1); it is monic).
: reducible — the Sophie Germain identity, .
: shift, : Eisenstein at . A factorization of would shift to one of : irreducible.
: a cubic is reducible over iff it has a rational root; a rational root of a monic integer polynomial is an integer dividing the constant term (rational root theorem: if in lowest terms is a root, , ), and are not roots ( and ): irreducible.
Exercise 2.8 ★★
(a) From Theorem 2.9, prove that Euler’s function is multiplicative on coprime arguments and that ; recover . (b) Solve: , , , exhibiting the idempotents of the proof of Theorem 2.9.
Solution
Solution of Exercise 2.8.
(a) For , Theorem 2.9 gives a ring isomorphism . An element of a product ring is a unit iff both coordinates are, so and . For a prime power, the non-units of are the classes of multiples of : . Hence
(b) . Idempotents: : and : . : , : . : : . Then
and indeed .
Exercise 2.9 ★★★
(The nilradical) Let be the set of nilpotent elements. (a) Show that is an ideal contained in every prime ideal. (b) Conversely, let be non-nilpotent; using Zorn’s lemma on the ideals avoiding , produce a prime ideal not containing . Conclude:
Solution
Solution of Exercise 2.9.
(a) If and , the binomial expansion of has every term with , so or : each term vanishes, and is nilpotent; : is an ideal. If is prime and , induction on gives ().
(b) Let and , so . The set of ideals disjoint from contains and is inductive (the union of a chain of ideals disjoint from is an ideal disjoint from ): Zorn provides maximal. is proper (, since ). Primality: let . By maximality, and meet : , . Multiplying, . If , then : absurd. So — contrapositive of primality. Hence every non-nilpotent element avoids some prime ideal; with (a), .
Exercise 2.10 ★★★
(a) Let be Noetherian and a surjective ring morphism. Show that is injective. (Consider .) (b) Show that the ring of continuous functions is not Noetherian. (Consider .) (c) Show that in a Noetherian domain, every nonzero nonunit is a (finite) product of irreducibles — so non-factoriality of is a failure of uniqueness only.
Solution
Solution of Exercise 2.10.
(a) The chain stabilizes (Proposition 2.29): for some . Let . As , hence , is surjective, for some ; then , so , i.e. .
(b) is an ideal, and . The inclusion is strict: vanishes on but not on . An infinite strictly increasing chain contradicts Proposition 2.29.
(c) Suppose the set of nonzero nonunits admitting no factorization into irreducibles is nonempty. The corresponding family of ideals has a maximal element (Proposition 2.29). The element is not irreducible (an irreducible is its own factorization), so with nonunits; is strict (as would give , , so : a unit), likewise . By maximality, and both factor into irreducibles; concatenating factors : contradiction. Applied to — Noetherian as a quotient of (Theorem 2.30, ) — this shows factorizations exist there; Exercise 2.3 showed uniqueness is what fails.
Exercise 2.11 ★★★
Let . (a) Show that is irreducible over (Exercise 2.7). (b) Show that is reducible modulo every prime : treat ; then, for odd , show that and admit for now (proved in Chapter 4) that the multiplicative group of the field with elements is cyclic, to conclude that splits into two quadratic factors mod ; make them explicit when one of , , is a square mod , and show one of them always is.
Solution
Solution of Exercise 2.11.
(a) Exercise 2.7: shift and Eisenstein at .
(b) Mod : . Now let be odd. The squares form a subgroup of index in : the morphism has kernel (two elements: has at most roots in a field, and for odd ), so its image has elements. Consequently, the product of two non-squares is a square (in the order- quotient group, ). Hence at least one of , , is a square mod (if and are not, is). In each case factors mod :
- : ;
- : ;
- : .
So is reducible modulo every prime, yet irreducible over : the reduction criterion (Theorem 2.25(1)) detects irreducibility but its failure proves nothing.
(For the structural reason: is a product of two consecutive even numbers, so ; the cyclic group (cyclicity proved in Chapter 4) then contains an element of order , a root of ; its minimal polynomial over divides and has degree — can never be irreducible mod .)
Exercise 2.12 ★★
(Idempotents split rings) An element of a commutative ring is idempotent if . (a) Show that if is idempotent, so is , and that the map is a ring isomorphism , where is a ring with unit . (b) Find all idempotents of a domain, and of ; exhibit the isomorphism by naming its two nontrivial idempotents. (c) Show that the CRT decomposition of (Example 2.10) corresponds exactly to the idempotents , modulo the other prime powers: rings decompose along their idempotents as spaces decompose along projections.
Solution
Solution of Exercise 2.12.
(a) . The map is additive and multiplicative into the product of the two ideals: , and is a commutative ring with unit (). Injective: and sum to . Surjective: is the image of (compute both components using ). Units map to -style pairs correctly: , the unit of the product.
(b) In a domain, forces : only trivial idempotents. In , solving : . The nontrivial pair : , , and (unit ), (unit ): the CRT splitting , with and .
(c) Under the CRT isomorphism , the element with the stated congruences corresponds to the tuple with in slot and elsewhere: the elementary idempotents of the product. Conversely a complete family of orthogonal idempotents ( for , ) reassembles the product decomposition by (a), inductively. Idempotents are to rings what orthogonal projections are to Hilbert spaces (Chapter 13): the coordinates of an internal direct decomposition.
2.6 Problem: Fermat’s two-squares theorem
Problem 2.1
Weekend problem — sums of two squares, via
Which integers are sums of two squares? Fermat’s answer (1640) is one of arithmetic’s gems; the Gaussian integers turn its proof into ring theory. Throughout, denotes the norm, is Euclidean (Exercise 2.4), hence a PID and a UFD, and Gaussian prime means prime (= irreducible) element of .
Part I — Norms and Gaussian primes.
- Verify , deduce again , and prove the Brahmagupta identity: a product of two sums of two squares is a sum of two squares.
- Show that if is a prime number, then is a Gaussian prime.
- Show that every Gaussian prime divides exactly one prime number (consider ), and that then .
- Deduce the dichotomy: for each prime , either stays prime in (and no Gaussian prime of norm exists), or with a Gaussian prime of norm — and then .
Part II — Wilson’s theorem and modulo .
- Prove Wilson’s theorem: for prime, . (Pair each residue with its inverse; which ones are self-paired?)
- Let be an odd prime and . Show that (in , replace each factor by ).
- Conclude: is a square modulo iff or . (For the “only if”: if , what is the order of in , and what does Lagrange say?)
Part III — The splitting law.
- Let , and with . Show that is not a Gaussian prime, and conclude with Part I: .
- Let . Show directly that is not a sum of two squares (squares mod ), and deduce that stays a Gaussian prime.
- Settle : exhibit the factorization and check that is a Gaussian prime. ( is the unique ramified prime: divisible by the square of a Gaussian prime up to a unit.)
- Assemble the classification of Gaussian primes, up to units: ; the integers ; the conjugate pairs of norm . Verify it on and on .
Part IV — The two-squares theorem.
- Prove the direct half: if in the factorization every prime appears with an even exponent, then is a sum of two squares. (Brahmagupta + Parts II–III.)
- Prove the converse: if and divides , show that , a Gaussian prime, divides or , that it in fact divides both and , and conclude by induction on that the exponent of in is even.
- State the final theorem. Which of , , are sums of two squares? (; , prime; prime.)
- (Epilogue) Show that a prime is a sum of two squares in an essentially unique way: if (positive integers), then . (Uniqueness of factorization in .)
Part V — Counting representations: Jacobi’s formula and Leibniz’s series. Write (ordered pairs, signs and zeros included), and let be the nontrivial character mod : if , if , if even.
- (Warm-up, by contrast) Which integers are differences of two squares? Show: with iff — no ring theory needed, and no structure comparable to what follows.
Show that is the number of with . Writing with , , use the classification of question 11 and unique factorization to show: such exist iff all are even, and in that case
(Count: with a unit and ; why is this list exhaustive and repetition-free?)
- Show that is completely multiplicative, deduce that is multiplicative, and compute it on prime powers: it equals on ; on (); or on () according as is even or odd.
Conclude Jacobi’s theorem:
where counts the divisors . Verify on , and list the representations of .
(The circle) Show that is the number of lattice points of in the closed disc of radius , and prove
(each lattice point owns a unit square; compare areas, the error living in an annulus of width ).
(Leibniz, read arithmetically) Combine questions 19–20:
and deduce — removing the floors carefully — Leibniz’s series
The alternating series of odd reciprocals is the average excess of divisors over divisors : analysis computed by arithmetic.
- (How rare are sums of two squares?) Show that no integer is a sum of two squares (two ways: squares mod , or the parity criterion of question 17), so at least a quarter of all integers are missed; and show that the average of question 20 is compatible with representable integers having density — exhibit integers with abnormally many representations (take products of many primes ) to explain how a vanishing proportion can still carry a positive average. (Landau proved the true density decays like ; that is beyond our tools, but the mechanism is now visible.)
Part VI — Complements: primitive representations and Pythagoras.
- Call a representation primitive if . Show that admits a primitive representation iff and no prime divides . (For the necessity, reuse the descent of question 13 and squares mod ; for the sufficiency, build from and the only — no conjugates — and explain why a common prime factor of and would force both and , or , into .)
(Pythagorean triples) Let with positive, and even. Show that and are coprime in (a common Gaussian prime divisor would divide and , and is odd), deduce from unique factorization that for a unit , and conclude the classical parametrization: up to swapping and ,
with coprime of opposite parities. Recover and from and .
(Numerical verification) Take . Compute for from Jacobi’s formula, check that the nonzero values occur exactly at , and that
Verify that the closed disc of radius contains lattice points, and compare with : the error is well within the of question 20.
Solution
Solution of Problem 2.1.
1. , so . If : in , so , i.e. ; all four are units. Brahmagupta: .
2. If , then is prime, so or : one factor is a unit. As , is neither zero nor a unit: irreducible — and prime, since is a UFD (Theorem 2.14, Theorem 2.18 and Lemma 2.17).
3. divides , an integer; factoring into prime numbers and using that is prime, for some prime number . If also : Bézout in gives , so — absurd: is unique. From : with , so .
4. Let be a Gaussian prime dividing , . If : , so is an associate of , itself a Gaussian prime; and no Gaussian prime has norm (if then , and prime in would force associate to , giving ). If : writing , .
5. In the abelian group , pair each element with its inverse. The self-inverse elements are the roots of : exactly (at most two roots in a field). The product of all elements is then : . (For : .)
6. Write with . In the second product substitute , : modulo , . Hence , i.e. .
7. If , is even and question 6 gives : a square root of . Conversely, if ( odd), then : has order in , so (Lagrange). And : . Conclusion: is a square mod iff or .
8. With : . If were a Gaussian prime it would divide a factor; but . So is not a Gaussian prime; by the dichotomy (question 4) — not prime means the second branch — .
9. Squares are or , so : a prime is not a sum of two squares. By question 4, the branch () is impossible: stays a Gaussian prime.
10. , so ; and is prime, so is a Gaussian prime (question 2).
11. Every Gaussian prime divides exactly one prime number (question 3); listing by cases: gives the associates of ; gives itself (question 9); gives the pair of norm (questions 4 and 8). The pair is genuine: would force, writing , either , , or , giving — impossible for an odd prime. Check: , ; : prime of norm .
12. Write with , . Each factor is a sum of two squares: ; (question 8); . The Brahmagupta identity (question 1) propagates the property to the product .
13. Let and , . The Gaussian prime (question 9) divides , hence one of the two factors — say (the other case is identical). But then reads off as and in . Hence and . By strong induction on , the exponent of in is even; that of is even too.
14. Theorem (Fermat). A positive integer is a sum of two squares if and only if every prime occurs in it with an even exponent. — : exponent of even, yes (). with prime: yes (, and Brahmagupta with : ). is a prime : no.
15. Let with positive integers, , and a Gaussian prime with (question 4). Both and have norm , hence are Gaussian primes (question 2) dividing ; by uniqueness of factorization, is an associate of or of :
Positivity of leaves : .
16. If : the two factors have the same parity, so is odd (both odd) or divisible by (both even) — never . Conversely, odd: ; : . The answer is a bare congruence condition, with a one-line identity behind it: differences of squares carry no arithmetic depth, and the contrast with sums is the whole point of this problem.
17. is a bijection between representations and . Factor in the UFD using the classification (question 11): up to a unit, , and taking norms (, , ):
Matching exponents: , , — solvable iff every is even, and then is forced while is free. Distinct data give non-associate ’s with the same norm; the unit (4 choices) then enumerates each associate class without repetition (two equal products would violate uniqueness of factorization — and are non-associate since is not ramified). Total: , and if some is odd.
18. is checked mod (odd odd covers the four sign cases; anything even gives ). For coprime , divisors of are uniquely with , : : multiplicative. Prime powers: on , only is odd: sum . On with : all , sum . On with : , alternating sum ( even) or ( odd).
19. The two multiplicative functions (question 17) and (question 18) agree on all prime powers — on ; on ; on — hence agree everywhere: Jacobi’s formula, with by sorting divisors. Checks: ; (); (divisors ; ; representations ); . For : , from : the sixteen pairs .
20. counts the pairs with , i.e. the lattice points of the closed disc minus the origin. Assign to each lattice point the unit square : these squares tile the plane. Every square attached to a point of lies in , and every square meeting is attached to a point of (the square has diameter ): comparing areas,
and both bounds are . Subtracting the origin changes nothing at this precision.
21. By Jacobi (question 19) and exchanging the order of summation ():
which is by question 20. Remove the floors: , but summing over is too crude; instead use that the partial sums of are bounded ( cyclically), so by Abel summation , whose terms we group in pairs , is — alternatively and more simply: split at . For , replace by : error . For , takes each value on an interval of consecutive ’s, on which the -sum is : total error by summing over the values of , while by alternating-series tails (). Hence
and letting : .
22. If were : squares are , and mod — impossible. (Question 17’s criterion says the same: forces some prime to odd exponent.) So representable integers avoid a full residue class: density . The average of concentrates on few integers: (distinct primes ) has representations — unboundedly many — so a sparse set of ’s can carry the whole average, exactly as a lottery’s mean payoff coexists with almost-sure loss. Landau’s confirms it: density , average .
23. Necessity. Let with . If a prime divided , question 13 shows and : contradiction. If : squares are , so forces , i.e. both even: contradiction. Sufficiency. Write with and , and set , of norm . Suppose a prime divides ; then in . If : , excluded. If : , so ; but the factorization of contains no conjugate prime ( and are non-associate, question 17), contradicting unique factorization. If : then , forcing , excluded. Hence : the representation is primitive.
24. is odd (, even), so is odd and is odd. Let be a common Gaussian prime divisor of and : it divides their sum and their difference , hence and ; a Bézout relation then gives , so is associate to and divides , which is odd: contradiction. So and are coprime with product ; in the UFD , each Gaussian prime of occurs to an even exponent and splits entirely into one of the two coprime factors, whence with a unit. The choices make the real part even — impossible, is odd. The choices give, after adjusting the signs of and swapping their names to make everything positive, , with ; and gives . A common divisor of and would divide and : ; and would make even: opposite parities. Checks: gives ; gives , and .
25. Jacobi’s formula gives, for :
nonzero exactly at (for instance : divisors and balance; : divisors , none ). The total is . The divisor side: the odd contribute
reading for ; and , as predicted by question 21’s identity. Lattice points of the closed disc of radius : the points with plus the origin, i.e. ; and , an error of about , comfortably within the band of question 20 ().