Past exam of the mathematics course of the University of Cambridge 2003 ia Paper 4 6C ii Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 4 1E Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 4 7E Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 3 1H Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2008 ia Paper 4 6D a Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2009 ia Paper 4 2E a Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2009 ii Paper 1 1G Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2010 ia Paper 4 1E a Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2010 ia Paper 4 1E b Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2012 ia Paper 4 1D ii Solution Created 2026-09-24 Updated 2026-10-07
Write . The second modular congruence becomes . The Bezout identity above says that is the inverse of modulo , so . ThereforeThe checks are . The Chinese remainder theorem explains uniqueness modulo , since the moduli are coprime integers.
Past exam of the mathematics course of the University of Cambridge 2014 ia Paper 4 6E i Solution Created 2026-09-24 Updated 2026-10-06
The Fermat-Euler theorem states that, for an integer and any integer coprime to ,where the Euler totient function counts the residue classes coprime to .
Let be representatives of these residue classes. Multiplication by gives a permutation of them: each remains coprime to , and implies by cancellation using the modular inverse of . Multiplying all the resulting modular congruences yieldsThe product is itself coprime to , so it has a modular inverse and can be canceled. This proves the Fermat-Euler theorem. For , the congruence is trivial; no separate argument is needed.
Past exam of the mathematics course of the University of Cambridge 2015 ia Paper 4 6E ii Solution Created 2026-09-24 Updated 2026-10-06
For , the identity for binomial coefficientsshows that divides . Since is a prime number and is not divisible by , cancellation modulo givesThe binomial theorem consequently gives as a coefficientwise polynomial modular congruence. Apply the same identity with replaced by and use mathematical induction to obtainThis is an iteration of the Frobenius endomorphism in characteristic . Comparing the intermediate coefficients gives the prime-power binomial divisibility result
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 4 1D a Solution Created 2026-09-24 Updated 2026-10-05
Reduce using modular congruence: its residue class modulo is , , or . A square number therefore has residue class or , and raising either residue to the positive integer power leaves it unchanged. ConsequentlyThe exponent in the original PDF is ; the polynomial identities in the converted TeX are a transcription error. The argument uses ; it does not assign a value.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 4 1D b Solution Created 2026-09-24 Updated 2026-10-05
For a Pythagorean triple, each square number is or modulo . If neither nor were divisible by , modular congruence would give , impossible for a square number. Thus at least one of is divisible by ; both can be divisible, as in .
An odd number has square number congruent to modulo , whereas an even number has square number congruent to . If both and were odd numbers, their sum of square numbers would again be modulo , which no square number can be. Hence and cannot both be odd. They can both be even; the conclusion does not require the Pythagorean triple to be primitive.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 4 5D a Solution Created 2026-09-24 Updated 2026-10-05
The Fermat-Euler theorem states that for an integer and a positive integer with ,where the Euler totient function counts the residue classes coprime to . For , choose a reduced residue system . Multiplication by the unit modulo n preserves coprimality and is injective on these residue classes: implies , because has a multiplicative inverse modulo . It therefore permutes the reduced residue system, givingThe product is also a unit modulo n, so it can be cancelled. This proves the Fermat-Euler theorem. For every modular congruence is automatic; one may use .
For a prime number , the Euler totient function has value . Thus whenever . Multiplying by , and treating separately, gives the all-integer version of Fermat's little theorem:Finally, Wilson theorem states that for every prime number , . Its converse is also true: an integer is prime exactly when . For the converse, any proper divisor would divide both and , contradicting that congruence.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 3 1I Solution Created 2026-09-24 Updated 2026-10-03
A reduced positive definite binary quadratic form satisfieswith when or . Its discriminant of a binary quadratic form is . The first displayed inequality already gives , while givesTaking the positive square root yieldsMoreover, , so . For fixed negative , the displayed bounds leave only finitely many possible integers and , and then is uniquely determined. Hence only finitely many reduced forms have discriminant .
For , the bound gives , so . The modular congruence condition makes odd. If , then and ; the boundary convention retains . If , then and ; the boundary convention retains . Thus the complete list is
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 2 1G Solution Created 2026-09-23 Updated 2026-10-03
The Lagrange root bound over a field says that a nonzero polynomial of degree over a field has at most roots. In particular, a polynomial modular congruence of degree modulo a prime number has at most incongruent solutions unless all its coefficients vanish modulo that prime.
Suppose that is good and that the positive integer divisor divides . The roots of form a finite multiplicative subgroup of . By the fact that every finite multiplicative subgroup of a field is cyclic, is a cyclic group of order . The solutions in of areso there are at least of them. The Lagrange root bound over a field gives at most roots in all of , hence exactly . Thus every divisor of a good number is good.
Now put . By the Chinese remainder theorem for unit groups, a base is a Fermat-pseudoprime base precisely when its two components satisfyThe power roots in a finite field andshow that each component has ten choices. Therefore there areFermat-pseudoprime bases.
To impose the strong pseudoprime condition, write with odd. Since , we have . In each cyclic group of ten Fermat components, raising to the th power sends five elements to and five elements to . A pair of components passes the strong test exactly when their signs agree: the pair satisfies the first alternative, and satisfies the second at . Components of opposite sign become after squaring and can never jointly equal . Hence the number of strong-pseudoprime bases is