The practical reward of quadratic reciprocity is a smaller modulus: swap a pair of distinct odd primes, record the required sign, then reduce the numerator by modular arithmetic. Use multiplicativity of the Legendre symbol and the second supplementary law for quadratic reciprocity to handle a factor of two. For example,Here are both modulo , so the first swap changes sign; gives ; the swap involving five has no sign change. An independent square check is . The method determines existence of a square root without itself finding that root.
A composite numerator is allowed in a Legendre symbol; a composite denominator instead calls for a Jacobi symbol. Its Jacobi reciprocity law supports repeated swaps and remainder reductions, in the spirit of the Euclidean algorithm.[ref]
Quadratic Reciprocity by Ben Lynn. Ben Lynn, Quadratic Reciprocity, “The Jacobi Symbol”: product definition and reciprocity for computing symbols without factoring
A final Jacobi symbol of one is not a square-existence certificate for a composite number modulus. For example,yet is impossible: reducing it modulo three would require a square congruent to two, and squares modulo three are only zero or one. The product has hidden two local failures. By contrast, for a prime denominator, a Legendre symbol of one does certify a quadratic residue.
Past exam of the mathematics course of the University of Cambridge 2003 ib Paper 1 17G b Solution Created 2026-09-24 Updated 2026-10-14
Apply Euler's criterion to . It givesFor , the same criterion gives . Both sides are integers in , which are distinct modulo an odd prime, so congruence implies equality. This proves multiplicativity of the Legendre symbol:
Past exam of the mathematics course of the University of Cambridge 2003 ib Paper 1 17G c Solution Created 2026-09-24 Updated 2026-10-14
Since is nonzero modulo , it has a unique multiplicative inverse in the nonzero residues. The inverse cannot be because that would imply , excluded by the range. Thus as claimed. The congruence givesThe Legendre symbol of the nonzero square is one. Using multiplicativity of the Legendre symbol therefore gives
Past exam of the mathematics course of the University of Cambridge 2010 ii Paper 2 1G ii Solution Created 2026-09-24 Updated 2026-10-14
Euler's criterion gives in this case. There are equally many nonzero quadratic residues and quadratic nonresidues, so . Replacing by and using the multiplicativity of the Legendre symbol givesConsequently .
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 27 1 c Solution Created 2026-10-03 Updated 2026-10-06
For coefficients supported on an interval of length , write and . The variance form of the large sieve statesThe constant is absolute. One may take the explicit right side , by orthogonality of roots of unity and the exponential-sum large sieve proved in Question 2.
Take , , and the indicator function of the -smooth numbers up to . Applying the given smooth-number density with parameter giveswith a harmless adjustment of the constant for integer endpoints. If an odd prime has least quadratic nonresidue , then : a quadratic nonresidue always occurs among . Every prime factor of every selected smooth number is thus a nonzero quadratic residue modulo . By the multiplicativity of the Legendre symbol, every selected number is a nonzero quadratic residue modulo .
There are nonzero quadratic nonresidue classes, and on all of them. Their contribution to the variance is at leastIf denotes the number of exceptional primes, the variance form of the large sieve, with , yields . ConsequentlyThis is the bounded exceptional primes for least quadratic nonresidues argument. Using an interval of length is what matches the term; an interval of length would not give a bounded exceptional set.
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 3 11G Solution Created 2026-09-24 Updated 2026-10-03
Write an integral binary quadratic form as , with discriminant of a binary quadratic form . It is positive definite when and . Two forms are equivalent if one is obtained from the other by an integral linear change of variables whose matrix lies in . A positive definite form is reduced whenwith when or .
To reduce a form, apply a unimodular shear with chosen so that the new middle coefficient has . If the new final coefficient is smaller than , exchange the variables, using a determinant-one rotation, so that the positive leading coefficient decreases from to . Repeating must stop because a positive integer cannot decrease indefinitely. At termination , and elementary sign changes impose the boundary convention. This is the reduction algorithm for a positive definite binary quadratic form, and proves that every positive definite form is equivalent to a reduced one.
The displayed forms have discriminant , so the intended discriminant is . For any reduced form of this discriminant, enumeration of reduced binary quadratic forms givesThe boundary convention and direct checking of leave only
Suppose first that a prime is represented by . The identityshows modulo both and that is a nonzero square. HenceSimilarly,Modulo , this says is a square, while modulo it says is a square. Since , the multiplicativity of the Legendre symbol gives
Conversely, suppose the two displayed Legendre symbols have the same sign. By quadratic reciprocity,Choose an odd integer satisfying . Since is odd, is also divisible by , sois a positive definite integral form of discriminant that represents . Reducing yields either or , and equivalence preserves represented integers. The necessary symbol calculation above determines which one: the positive pair selects , and the negative pair selects . Therefore
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 3 11H iii Solution Created 2026-09-24 Updated 2026-09-29
Write . Choose a quadratic nonresidue . Multiplication by permutes , while multiplicativity of the Legendre symbol gives . Thereforeso the complete Legendre-symbol sum is zero.
Since and , the bijection reduces the next sum to . Count pairs satisfying . On one hand their number isOn the other hand , and every gives exactly one pair by , . There are therefore pairs, proving the quadratic Legendre-symbol correlation
For , the indicator that both and are quadratic residues is . Summing and using the two identities above gives the number of consecutive nonzero quadratic residues modulo an odd prime
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 3 11H i Solution Created 2026-09-24 Updated 2026-09-29
For an odd prime number , the Legendre symbol isIf , multiplicativity of the Legendre symbol givesBoth factors belong to , so they are equal. Thus .
For a prime number , multiplicativity of the Legendre symbol says , including the case of a zero factor. Therefore, writing with repetitions,This product definition still agrees with the stipulated zero when the numerator and denominator are not coprime. For all three symbols are .
The primes both work, with the zero residue as a solution. For every other prime, multiplicativity of the Legendre symbol and quadratic reciprocity giveThe first factor is positive for ; the second is positive for . They must have the same sign. The Chinese remainder theorem therefore yields
Quadratic nonresidue Created 2026-09-24 Updated 2026-10-18
A nonzero congruence class modulo an odd prime is a quadratic nonresidue when it is not a square. In the convention of quadratic residue, zero belongs to neither class. Thus are the quadratic nonresidues modulo seven, while are the quadratic nonresidues modulo eleven. No integer satisfies , as the complete square map under quadratic residue shows.
A quadratic nonresidue is not an arithmetic dead end: multiplying by any fixed quadratic nonresidue exchanges the quadratic residues and the quadratic nonresidues. If were a square for a square , division by would make a square. Hence consists entirely of quadratic nonresidues; it has elements, because multiplication by nonzero is a bijection. It therefore equals the entire other coset of the quadratic residue subgroup. Modulo seven, .
The product of two quadratic nonresidues is consequently a quadratic residue: write them as in that same coset, and their product is , a square. For example, , whereas remains a quadratic nonresidue. The multiplicativity of the Legendre symbol packages these rules as ordinary sign multiplication.