Suppose there were only finitely many prime numbers congruent to modulo , and list them as . The list is nonempty since it contains . Let . It is greater than one and divisible by neither nor . Every prime factor therefore has residue or modulo . Since , at least one prime factor must have residue . But for every listed prime, so is not on the list. This contradiction proves there are infinitely many primes congruent to modulo .
Every integer has one of the six residues modulo . A prime number other than or is divisible by neither nor , eliminating residues . Thus
The tower law for field extensions states that, for with both successive degrees finite,
Indeed, if form an -basis of and form a -basis of , their products form an -basis of : expansion gives spanning, and independence follows first over and then over .
Starting from a unit segment, every straightedge and compass construction introduces coordinates by solving linear or quadratic equations over the coordinates already available. Thus a constructible number belongs to a tower of field extensions whose successive degrees are one or two; the total degree is a power of two. Doubling the volume of a unit cube would require the edge length . Its minimal polynomial over is , irreducible by Eisenstein's criterion at the prime number two. Thus . If that number lay in a construction field of degree , the tower law would make three divide , a contradiction. Therefore doubling the cube by straightedge and compass is impossible.
Euler's totient function is
Euler's theorem states that implies . For , let be the invertible residue classes modulo . Multiplication by permutes these classes, since it has an inverse modulo . Multiplying the resulting congruences gives
Every factor is a unit, so the product can be cancelled, proving the theorem. The case is immediate. For distinct prime numbers , removing multiples of either prime from gives
For the RSA cryptosystem, choose distinct large primes , put , and choose coprime to . Compute with . The public key is ; the private exponent is retained secretly. Represent a message by , encrypt by , and decrypt by .
To prove correct decryption even for messages not coprime to , write . Modulo , if then ; otherwise Fermat's little theorem gives . The same reasoning holds modulo . The Chinese remainder theorem therefore gives , and the chosen representative recovers . Thus decryption works for every message residue, not merely the units.
The tower law for field extensions states that, for with both successive degrees finite,
Indeed, if form an -basis of and form a -basis of , their products form an -basis of : expansion gives spanning, and independence follows first over and then over .
Starting from a unit segment, every straightedge and compass construction introduces coordinates by solving linear or quadratic equations over the coordinates already available. Thus a constructible number belongs to a tower of field extensions whose successive degrees are one or two; the total degree is a power of two. Doubling the volume of a unit cube would require the edge length . Its minimal polynomial over is , irreducible by Eisenstein's criterion at the prime number two. Thus . If that number lay in a construction field of degree , the tower law would make three divide , a contradiction. Therefore doubling the cube by straightedge and compass is impossible.
Euler's totient function is
Euler's theorem states that implies . For , let be the invertible residue classes modulo . Multiplication by permutes these classes, since it has an inverse modulo . Multiplying the resulting congruences gives
Every factor is a unit, so the product can be cancelled, proving the theorem. The case is immediate. For distinct prime numbers , removing multiples of either prime from gives
For the RSA cryptosystem, choose distinct large primes , put , and choose coprime to . Compute with . The public key is ; the private exponent is retained secretly. Represent a message by , encrypt by , and decrypt by .
To prove correct decryption even for messages not coprime to , write . Modulo , if then ; otherwise Fermat's little theorem gives . The same reasoning holds modulo . The Chinese remainder theorem therefore gives , and the chosen representative recovers . Thus decryption works for every message residue, not merely the units.
For distinct odd primes and , quadratic reciprocity states
The supplementary laws are
The Euler criterion states that for an odd prime number and ,
The same modular congruence remains true when , with both sides zero.
For an odd prime number , a nonzero class is a quadratic residue if for some integer not divisible by . The Legendre symbol is
When discussing solvability of without a coprimality assumption, zero is also a square. This convention matters in the final local characterization of integer squares.
Every integer square remains a square modulo every prime number, including the zero class at its prime divisors. Conversely, let be an odd integer which is not an integer square. If is the negative of a square, part (i) supplies an odd with . In every other case, the prime factorization of has an odd exponent at some odd prime . Write with odd and , and apply part (ii).
In either case, factor the resulting into primes. Since its Jacobi symbol is a product of Legendre symbols and equals , at least one prime factor has . Thus is not a square modulo that prime. This proves an odd integer is an integer square exactly when it is a square modulo every prime. If the phrase quadratic residue is restricted to nonzero residue classes, the final statement must instead say “a square modulo every prime”; for example, reduces to zero modulo .
In field characteristic , the binomial theorem gives , since the intermediate binomial coefficients are divisible by the prime number . If is a root of , then , and hence
If the complete list of prime numbers were , then would have a prime divisor by the fundamental theorem of arithmetic. No divides it, since . This contradicts completeness of the list. Hence there are infinitely many prime numbers.
The fundamental theorem of arithmetic says that every integer is a product of prime numbers, uniquely up to reordering. Equivalently, for a unique family of nonnegative integer exponents, only finitely many of which are nonzero.
Suppose there were only finitely many prime numbers congruent to modulo , and list them as . The list is nonempty since it contains . Let . It is greater than one and divisible by neither nor . Every prime factor therefore has residue or modulo . Since , at least one prime factor must have residue . But for every listed prime, so is not on the list. This contradiction proves there are infinitely many primes congruent to modulo .
Every integer has one of the six residues modulo . A prime number other than or is divisible by neither nor , eliminating residues . Thus
No field has six elements. A finite field has positive characteristic: the sequence must repeat. By part (a), this characteristic is a prime number . Translation by partitions the field into cycles of length , since returning to a starting point after steps is equivalent to . Thus divides six and or .
The multiples of form a copy of the prime field . For completeness, the inverse of a nonzero residue lies among these multiples: the integer Bezout identity gives . The entire field is a vector space over this subfield. A maximal linearly independent set is finite and spans, so it is a basis of some positive size . Unique basis coordinates give exactly elements. This proves finite field cardinality is a prime power here. But six is neither a power of two nor a power of three, a contradiction.
Let be a square-free integer. If , then is the trivial cyclic group. Otherwise, finiteness means that a direct sum of modules decomposition into cyclic groups has only finitely many nontrivial factors, each of finite group order. Omit trivial factors and write
The integers are coprime integers whenever . If a prime number divided both, then , contradicting the square-free integer hypothesis.
Moreover, and are coprime integers: any common prime divisor would divide one of the earlier factors as well as . Thus part (b)(ii) can be applied repeatedly to combine factors, giving
In particular is a cyclic group. Under the displayed identifications, the element whose coordinate in every factor is the class of is a generator of a group.