Cyclotomic class of a finite field Created 2026-10-14 Updated 2026-10-20
The cosets of the index- subgroup of the multiplicative group of a finite field are its cyclotomic classes of index . For a character with , their indicators are , with every character extended by zero at zero. Jacobi sums of finite-field characters imply uniformly for .
Field with four elements Created 2026-10-06 Updated 2026-10-14
Build this finite field by taking a quotient ring of a polynomial ring:The polynomial has in the prime field . A polynomial of polynomial degree two is an irreducible polynomial exactly when it has no polynomial root in the coefficient field. Thus the quotient by an irreducible polynomial is a field construction applies. Its elements have unique representatives , with : precisely .
The defining relation is . Since this finite field has characteristic two, every element equals its additive inverse, and the relation becomes . Addition acts separately on the two coefficients:All coefficient calculations use modular arithmetic modulo two. For example, and . Encoding as the pair of bits gives , , , and ; addition is bitwise exclusive or. These are coordinates in the basis , so the label does not make the element .
For multiplication, expand using the distributive property and replace every by :For example, , while . The following complete tables are computed from the coefficient rules. Colors identify results, rather than their numerical sizes. Every row of the addition table lists all four elements, and every nonzero row of the multiplication table does too: adding an element, or multiplying by a nonzero element, can be undone.
The nonzero multiplicative inverses are , , and . Consequently the equation has the unique solution . Repeated multiplication gives , , , and . They cycle through every element of the multiplicative group of a finite field.
Compare the ring , also with four elements. Its addition satisfies , and its multiplication satisfies . Thus is a zero divisor, with no multiplicative inverse, and this ring is not a field. Multiplying by collapses different inputs to the same output: both and give , while both and give . In the field with four elements, multiplying by instead rotates the three nonzero elements, preserving their distinctness. The figure makes visible why counting four elements alone does not specify their arithmetic.
Multiplicative character of a finite field 2026-10-14
A multiplicative character is a group homomorphism from a finite field's multiplicative group of a finite field to the complex unit circle. A generator of the cyclic multiplicative group of a finite field produces a character of every order dividing . Extend every such character to zero by value zero, including the trivial multiplicative character, when using cyclotomic indicator formulas.
Multiplicative group of a finite field Created 2026-10-03 Updated 2026-10-14
The multiplicative group of a finite field is the group of its nonzero elements under multiplication. Zero is excluded because it has no multiplicative inverse. In the field with four elements, these elements are , obtained by repeated multiplication by : they form a cyclic group of group order three. Its addition behaves differently: every nonzero element added to itself gives zero. Keeping the two operations distinct prevents confusing the size of the finite field with the group order of its multiplicative group of a finite field.
Multiplicative self-maps of a finite field 2026-10-24
For a finite field with elements, exactly functions from the field to itself preserve multiplication, without requiring additivity or preservation of the identity. They are the constant-zero map, the constant-one map, and the power maps for .
To prove completeness, forces because a field has no zero divisors. The zero choice forces the constant-zero map. For , nonzero elements must map to nonzero elements, and the restriction is a group homomorphism of the cyclic multiplicative group of a finite field. Its generator has possible images, giving the power maps on nonzero elements. Setting extends each. The only further possibility is , which forces every value to be one. For , this gives six maps. These are generally not field homomorphisms, because preservation of addition was never required.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 36 3 Solution Created 2026-10-03 Updated 2026-10-14
A root of unity over a finite field is an element satisfying , with ; the algebraic closure is essential because all roots need not lie in the base field. Write and , where . In characteristic ,The latter polynomial has distinct roots, since the derivative is nonzero at every root. Those roots are closed under multiplication and inversion and contain , so is a finite multiplicative subgroup of a field. The proof in the preceding solution makes it a cyclic group. In particularThis also explains why the coprimality qualification is needed.
The multiplicative group of a finite field is cyclic of order . It contains the entire group of th roots precisely when . For necessity, a generator of has order and Lagrange's theorem applies. For sufficiency, a cyclic group whose order is divisible by contains roots of ; since there are exactly roots in the algebraic closure, these are all of them. Hence the least positive extension degree isHere is the multiplicative order of the residue class of modulo . If is coprime to , replace by . Existence of this order follows because is a unit modulo .
A primitive th root of unity over a finite field has multiplicative order exactly . If , no such element exists, since all roots have order dividing . If , choose a generator of . The element has order , so it is primitive precisely when . Therefore there are primitive roots, with the Euler totient function.
If is primitive of order , then exactly when , equivalently . The implication from that equality to membership follows because the roots of form , as proved in the preceding solution. Consequentlyfor , and the degree is one for . This is also the length of the finite-field Frobenius automorphism orbit of .
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 7 6 i Solution Created 2026-10-03 Updated 2026-10-14
We use the Bose-Chowla Sidon construction, deriving its difference property explicitly. Let be an odd prime and choose a generator of the multiplicative group of a finite field of the quadratic finite field extension . Such a generator cannot belong to , so are linearly independent over the prime field. For each , the nonzero field element has a unique exponent modulo , with . The exponents are distinct.
Suppose in the cyclic group. Multiplying the corresponding field elements givesSubtract the common term. Linear independence of gives and . Thus the two unordered pairs are the roots of the same monic quadratic polynomial, so . Either , giving the same ordered difference, or , giving two zero differences. This is exactly the Sidon set property.
Choose the integer representatives in . Equality of integer differences implies equality modulo , so their Sidon property persists in the integers. Now apply the given prime-gap hypothesis at to get for large . The representatives fit inside , because , and their cardinality isOnly the supplied short-interval prime existence and the elementary structure of a finite field are used.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 87 2 Solution Created 2026-10-03 Updated 2026-10-14
Represent a word in the Hamming space by the polynomial . A cyclic code is a linear code invariant under the cyclic coordinate shift . Under this identification the shift is multiplication by modulo . A shift-invariant vector subspace is closed under multiplication by every polynomial, since such multiplication is a linear combination of shifts. It is therefore an ideal ofConversely every ideal of is a vector subspace closed under multiplication by , hence a cyclic code. Invariance means equality under the shift, since applying it times is the identity.
Let be the inverse image of the code ideal under the quotient map . It contains and is nonzero. Choose a nonzero element of of smallest degree and scale it to a monic polynomial . For any , polynomial division gives with . Since , minimality forces . Thus and in particularThis is the required generator polynomial of a cyclic code; the divisibility direction in the printed formula is reversed. The quotient-ring modulus is , with denoting the multiplicative identity of the finite field. If , every codeword has a unique representative with . Indeed reduction of modulo gives this form, and two such products cannot differ by a nonzero multiple of because their difference has degree less than . ThereforeFor the zero code the convention is and this basis is empty; for the full word space .
The zeros of a cyclic code are the polynomial roots of in a splitting field of . Suppose first that the characteristic of does not divide . The formal derivative of is , which has no common root with ; all roots of are therefore simple. If they are , then is equivalent to for all . A root-evaluation parity-check matrix of a cyclic code, written with checks as rows, is consequentlyIts entries may lie in , rather than in the original finite field. To obtain a parity-check matrix over , choose a basis of over and replace each equation by the equations for all of its field coordinates. The resulting matrix has the same kernel , hence rank ; retain any independent rows. More economically, choose one root from each Frobenius conjugate orbit. For , , so checking one representative checks its whole orbit. Expanding that representative's equation in a basis of gives precisely the number of checks equal to its orbit length.
No coprimality hypothesis is stated in the question, so the repeated-root cyclic code case must also be distinguished. Distinct roots alone cannot determine these codes: in , the generators and have the same zero, but generate codes of dimensions one and zero. In general write in . The correct checks areusing Hasse derivatives. Indeed , so vanishing of the first coefficients is equivalent to divisibility by . A repeated-root parity-check matrix over thus has rows indexed by and entriesAs before, expand to equations over and retain independent rows. The ordinary root-evaluation matrix is exactly the special case .
For the binary Hamming code, let , , and let generate the multiplicative group of a finite field . This is possible because that group is a cyclic group. Choose a basis of over . The coordinate columns of then run through every nonzero vector of exactly once. They are a parity-check matrix for a Hamming code, possibly after permuting the columns of a given Hamming matrix. Thusis equivalent to the Hamming code. Multiplication by modulo multiplies its evaluation at by , so is a cyclic code.
The parity-check matrix has rank because its columns contain a basis. It has no zero column or repeated column, so no nonzero word of weight one or two is in its kernel. Two distinct nonzero columns have a nonzero sum, which is a third distinct column; these three columns give a word of weight three. Hence has parameters .
A polynomial over vanishes at exactly when it is divisible by its minimal polynomial of an algebraic element . The finite-field Frobenius automorphism gives all conjugates of as . Their orbit length is : if with , then the order of would divide , which is a smaller positive integer. Therefore the Hamming code as a cyclic code hasThe last exponent here is . The printed exponent would give , which is not a root of the degree- irreducible minimal polynomial of an algebraic element for .
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 87 3 Solution Created 2026-10-03 Updated 2026-10-14
For distinct evaluation points and , the Reed-Solomon code isThis is a linear code of dimension : evaluation is linear, and a nonzero polynomial of degree less than cannot vanish at all distinct points. The assertion of cyclicity concerns the primitive, unextended construction: set and , where generates the multiplicative group of a finite field . Arbitrary evaluation sets or arbitrary coordinate orders need not make a Reed-Solomon code a cyclic code.
For this ordered full-length construction, shifting the evaluation vector to the right gives . This is the evaluation vector of , whose degree is still less than , so it is a cyclic code. Its generator polynomial follows from the finite geometric seriesHere the scalar is nonzero in . Write and . For ,since . Thus every word is divisible by . This monic divisor of generates a cyclic code of dimension , equal to the evaluation code by inclusion and dimension. Hence
It is useful to allow a starting exponent for the consecutive zeros of a cyclic code. Define the primitive cyclic Reed-Solomon codeAll exponents are understood modulo . The same geometric-sum calculation shows thatIndeed evaluating its word polynomial at , , gives sums with exponents between one and . This is a generalized Reed-Solomon code, with nonzero coordinate multipliers ; is the unweighted evaluation code. Directly, a right shift corresponds to replacing by , so these offset codes are also cyclic codes.
A maximum distance separable code, or MDS code, is a linear code attaining the Singleton bound, with . To see the bound, deleting any coordinates is injective on a code of minimum Hamming distance , since two words with the same puncture would differ in at most positions. Therefore and . For a nonzero Reed-Solomon evaluation word, the polynomial has at most distinct polynomial roots, so at least coordinates are nonzero. Nonzero coordinate multipliers do not change these zero positions. This proves for both Reed-Solomon codes and generalized Reed-Solomon codes. Equality can also be exhibited: choose any evaluation points and take their linear factors as ; it vanishes exactly at those points and has weight . Thus
The duality of primitive cyclic Reed-Solomon codes is especially transparent in the evaluation form. Assume first . A vector of has coordinates , ; a vector of has coordinates , . Their standard dot product isEvery monomial in has exponent at least one and at most , and every such power sum vanishes. Thus . Both sides have dimension , givingIn particular has generator . This agrees with the general dual of a cyclic code rule: invert the roots belonging to the complementary factor . The dual is a Reed-Solomon code in the consecutive-zero convention. With the strictly unweighted evaluation definition, its coordinates instead have the form , so it is a generalized Reed-Solomon code; it need not equal the unweighted code of dimension on the same points. This convention distinction is essential. The case is the full word space and its dual is the zero code, obtained by taking .
For code encoding, use the finite-field discrete Fourier transform and its inverse:For a message , put for , and set all other transform coordinates to zero. The inverse discrete Fourier transform returnsThe zero transform coordinates are precisely the root checks defining . This gives non-systematic encoding by evaluation. For systematic polynomial encoding of a cyclic code with a message polynomial of degree less than , put and calculate the remainder of upon division by . Then is divisible by , and the last coefficients are the message coefficients. Both methods use the same generator polynomial and the same ordered powers of .
For bounded-distance decoding, let , put , and assume at most symbol errors. The following description uses the Reed-Solomon key equation and fixes the transform and locator conventions explicitly.
- Compute the syndromes for . The corresponding codeword transform values vanish. An error of value at coordinate contributes , where , so .
- Form . Use the Berlekamp-Massey algorithm, or the polynomial extended Euclidean algorithm applied to and , to solve with , , and . Choose the minimal-degree locator; zero syndrome gives , . The error locator polynomial is , and is the error evaluator polynomial.
- Perform a Chien search: test for . Its distinct zeros identify the erroneous coordinates. A mismatch between the degree and the number of distinct permitted roots is a decoding failure.
- Recover each error value by the Forney algorithm, with the present syndrome offset:
- Set , all other error coordinates to zero, and output . Verify that all root checks vanish and that the correction has weight at most . Recover the message from the unconstrained transform coordinates by , or from the last coefficients if systematic encoding was used.
The denominator in the Forney algorithm is nonzero for distinct locations. The minimum-distance error-detection and correction guarantee gives unique recovery because . If the required locator or a valid correction cannot be found, declare decoding failure. Beyond errors, a received word may lie near a different codeword, so successful root checks alone do not certify recovery of the originally transmitted message. The guaranteed correction radius is symbol errors.
Past exam of the mathematics course of the University of Cambridge 2008 ia Paper 4 6D b Solution Created 2026-09-24 Updated 2026-10-14
Take a generator of the multiplicative group of a finite field , which has order . Write . Since any possible nonzero base is , the condition of being a th power isBy part (a), this linear congruence is soluble exactly when divides . MeanwhileThus the required test isThe exponent residue classes divisible by are , so there are exactly distinct nonzero th powers. Equivalently, part (a) shows each value has exactly preimages under the power map.
Past exam of the mathematics course of the University of Cambridge 2008 ia Paper 4 6D c Solution Created 2026-09-24 Updated 2026-10-14
The greatest common divisor issince and are coprime integers. Part (b) therefore gives distinct th powers in the nonzero multiplicative group of a finite field . If “powers mod ” includes all residue classes, the additional value gives values including zero. The distinction is relevant because part (b) explicitly works in the nonzero group.
Past exam of the mathematics course of the University of Cambridge 2010 ii Paper 4 1G Solution Created 2026-09-24 Updated 2026-10-14
Since , we have and . Its multiplicative order therefore divides the prime number . It cannot be one, because . Thus the order is exactly .
To find the desired prime divisor, use the cyclotomic polynomialChoose a prime factor of this integer. Since , we have , so . Also . If , then , contradicting . Consequently has multiplicative order in the multiplicative group of a finite field . Lagrange theorem givesThis divides as required. Notice that order modulo a composite integer alone would not justify selecting an arbitrary prime divisor; the cyclotomic polynomial selects a suitable one.
If there were only finitely many such primes , choose , with the empty product interpreted as one. Each divides and hence does not divide . The preceding argument supplies a further prime dividing that integer, a contradiction. There are infinitely many primes in this residue class.
Past exam of the mathematics course of the University of Cambridge 2010 ii Paper 4 4H Solution Created 2026-09-24 Updated 2026-10-14
In a specified finite cyclic group , the discrete logarithm problem is to recover modulo from and . A common choice is a large prime-order subgroup of a multiplicative group of a finite field.
For Diffie-Hellman key exchange, Alice and Bob independently choose private exponents , transmit , and compute respectively and . Both obtainSolving a discrete logarithm problem reveals a private exponent and breaks this exchange. The converse implication is not known in general: recovering from is the computational Diffie–Hellman problem, rather than literally the same task as computing a logarithm.
The advantage is that parties without an already shared secret can establish a fresh session key, which can then be used with efficient symmetric encryption. A classical secret-key system requires an earlier secure key distribution; ordinary public-key encryption can instead transmit a chosen key, but ephemeral Diffie-Hellman key exchange also permits forward secrecy when private session exponents are erased and the exchange is authenticated. Authentication is essential: an unauthenticated exchange is vulnerable to a man-in-the-middle attack.
For multilateral Diffie-Hellman key exchange with participants with private exponents , send tokens clockwise around a ring. Participant starts the token and sends it to participant . On each subsequent receipt, the receiver raises the token to their own private exponent and sends it onwards, until that token has made transmissions and reaches participant . Its exponent then contains every exponent except . The receiver raises it to locally, obtainingEvery participant receives one such final token. There are tokens with exactly transmitted group elements per token, giving transmissions. No private exponent is transmitted.
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 4 1H Solution Created 2026-09-24 Updated 2026-10-06
Write with odd. If , the polynomial factor of by , evaluated at , supplies a proper divisor. Therefore must be a power of two. Conversely this is only a necessary condition for primality testing.
For a prime factor of the number, is odd and does not divide . Its multiplicative order satisfies but , since . When is a power of two, every proper divisor of divides , so . By Lagrange theorem in the multiplicative group of a finite field, . Thus .
The Fermat factorization method searches for a difference of two squares: starting at , increase until , and return . Every factorization of an odd integer has this form, with and . For , the successive differences at are . The last is , giving . Trial division by the primes up to their respective square roots confirms that both factors are prime.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 324 1 b i Solution Created 2026-10-03 Updated 2026-10-06
First require . A discrete logarithm to a generator of a group of exists only for nonzero ; the printed membership inadvertently also permits zero, for which is undefined. Zero can be rejected before any quantum circuit.
Put and write . Since is a generator of a group of order , the map is a bijection from to the multiplicative group of a finite field. Hence every nonzero has a unique with . Equality of powers of is equality of their exponents modulo , givingThe fiber over is an affine coset of the subgroup , and contains exactly pairs. This identifies the hidden subgroup problem underlying discrete-logarithm Fourier sampling; knowing numerically is not needed to construct the coset state.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 3 11I a Solution Created 2026-09-24 Updated 2026-10-03
A primitive root modulo is an integer whose residue class generates the multiplicative group of a finite field . Equivalently, its multiplicative order modulo is , so
The multiplicative group of a finite field has group order : its elements are exactly the nonzero residue classes. For any prime factor of , i and Lagrange's theorem therefore implySince and are positive integers, , and henceThis applies to every prime factor, including repeated prime factors viewed as the same prime number.
If the prime number divides , then , because is odd. Thus the residue of is an element of the multiplicative group of a finite field , and .
Let be its order of a group element. The integer division writes with . Then , so minimality of gives . Hence divides . Since is a prime number, or . The former would give , which would mean divides , an impossibility. Consequently
Primitive polynomial over a finite field 2026-10-14
A monic polynomial of degree over that is an irreducible polynomial is primitive in the finite-field sense when one of its roots generates the multiplicative group of a finite field . All its roots are Frobenius conjugates and then have the same order . This notion differs from a primitive polynomial over an integral domain, which concerns the common divisor of its coefficients. Primitive finite-field polynomials provide explicit field representations and primitive cyclic Reed-Solomon codes or BCH codes.
Quadratic residue Created 2026-09-24 Updated 2026-10-18
For an odd prime , a nonzero congruence class is a quadratic residue when for some integer . Here "quadratic residue" excludes zero: zero is a square of a number, but is neither a quadratic residue nor a quadratic nonresidue under this convention. Some treatments include zero among quadratic residues; the distinction matters when counting them or discussing their subgroup.[ref]
Quadratic Residue Patterns Modulo a Prime by Keith Conrad. Keith Conrad, Quadratic Residue Patterns Modulo a Prime, §1, p. 1: nonzero convention and equal counts
Modulo seven, squaring the six nonzero congruence classes givesThus the set of quadratic residues is , and the quadratic nonresidues are . In particular, has exactly the two solutions : and . Modulo eleven the quadratic residues are instead . Two is therefore a quadratic residue modulo seven and a quadratic nonresidue modulo eleven: being a quadratic residue depends on the modulus.
Why do the square roots come in pairs? If , the prime number divides , so it divides one factor: or . For nonzero these are distinct, because is an odd prime. Every nonempty nonzero fiber of a function of therefore contains exactly two inputs. Pairing the nonzero congruence classes gives exactly quadratic residues and quadratic nonresidues. Including zero gives different squares, with one rather than two square roots for zero.
The quadratic residues form a subgroup of the multiplicative group of a finite field , with index of a subgroup two. Indeed, one is a square, , and ; the inverses exist because the inputs are nonzero in the prime field. Equivalently, the squaring group homomorphism has kernel of a group homomorphism and image of a function . The apparent loss of a sign in squaring becomes a precise division of the nonzero arithmetic into two equal parts.
This structure turns a search for square roots into a yes-or-no test: Euler's criterion detects quadratic residues through modular exponentiation, and the Legendre symbol records the result as a sign. For a general integer modulus, the modular congruence still makes sense, but the two-root count and the prime field argument need not survive. For example, has four solutions ; the Chinese remainder theorem separates the sign choices modulo three and five.


