Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 124 1 a Solution Created 2026-10-03 Updated 2026-10-06
An additive arithmetic function satisfies for coprime integers ; a completely additive arithmetic function satisfies this for all positive . In either case . The Fundamental theorem of arithmetic gives , where means that the prime valuation of at is exactly .
Under the discrete uniform distribution on , the expectation of the indicator function of isThe formula remains valid when . Applying linearity of expectation to the finite prime power decomposition proves the required mean formula:
For the last assertion, write the excess prime-factor multiplicity directly as a sum of nonnegative indicator functions:Here is the prime omega function and is the total number of prime factors. The expectation is bounded independently of , sinceThus Markov inequality gives vanishing probability on every diverging scale:
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 324 1 i Solution Created 2026-10-03 Updated 2026-10-06
For coprime integers , the multiplicative order is the smallest positive exponentIt exists because multiplication by is an element of the finite group of units modulo an integer. For the example, the successive residues areNone of the first three is one, so the order is four.
The factor extraction from an even modular order uses the factorization . If the multiplicative order is even, put . Minimality of the multiplicative order excludes ; we also require . Thus is a nontrivial square root of one. Neither nor is divisible by all of . If either were coprime to , its inverse modulo , applied to , would make the other divisible by , a contradiction. Hence the greatest common divisorsare proper nontrivial factors. For odd , and have no common prime divisor of , so these two divisors are complementary. If the initial is not coprime to , a proper already supplies a factor without quantum order finding.
For and , and , which is neither nor . The factors areThe necessary conditions for this order-based reduction are a unit , even true multiplicative order, and .
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 324 1 a Solution Created 2026-10-03 Updated 2026-10-06
Use the positive-exponent quantum Fourier transform convention . The period of a function here is the least positive translation leaving the function unchanged on the cyclic group . The injective promise means exactly when . In particular : the subgroup of period translations is generated by , and wrapping the argument by preserves its value. This is exact quantum period finding on a finite cyclic group, rather than the truncated, nondividing-period version requiring continued fractions.
Prepare a uniform superposition state in the first quantum register using , and perform a reversible computation of the function into a second quantum register, cleaning its workspace by uncomputation:A quantum measurement in the computational basis of the second quantum register leaves a periodic coset state in the first:For the quantum Fourier transform of this periodic coset state, the finite geometric series vanishes unless the measured label is . On those labels its normalized amplitude is . Thus has the uniform distribution on a finite set on , irrespective of .
Compute the greatest common divisor by the Euclidean algorithm, and set , with . Since ,The exact period recovery from a Fourier sample is therefore certified by testing . Every candidate divides and lies between and , so the injective promise makes that equality equivalent to . This includes , where the test uses input , and , which always succeeds. The test does not assert that an arbitrary equality of function values certifies an arbitrary period; the Fourier-derived divisor restriction is essential.
The concise result isHere is the Euler totient function, with . The totient lower bound from the Mertens product gives for . Each trial uses polynomial time quantum Fourier transforms, function evaluations and Euclidean algorithm arithmetic in . Repeating independent trials gives constant success probability; the herald accepts only correct answers.
The printed asymptotic bound has the wrong direction for this argument. In Big O notation, the stated upper bound on the number of coprime integers supplies no success lower bound and is itself false uniformly: for prime , , not . Likewise the single-trial success need not be , since it tends to one for prime. The meaningful corrected guarantee is the lower bound above. If an upper-bounded success rate is literally required, one may deliberately retain an accepted result with an independent probability proportional to ; this discards useful successes and is unnecessary for efficient recovery.
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 1 1G a Solution Created 2026-09-24 Updated 2026-10-03
For pairwise coprime integers , put . The Chinese remainder theorem states that reduction gives an isomorphismEquivalently, every system has one solution modulo .
For existence, let . Since , choose with . Thenhas every required residue: modulo , all terms except the th vanish and the remaining term is . For uniqueness, if and have the same residues, every divides . Pairwise coprimality then makes divide . Thus the simultaneous solution exists and is unique modulo .
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 3 1G Solution Created 2026-09-24 Updated 2026-10-03
An arithmetic function is multiplicative if whenever and are coprime integers. If and , every positive integer divisor of is uniquely with and . Henceso is multiplicative.
The Möbius function is defined by , if the square of a prime number divides , and if is a product of distinct prime numbers. Coprime integers have disjoint sets of prime factors, so this definition immediately gives when .
For , only the square-free divisors contribute, and thereforeFor the sum is . Thus in the language of Dirichlet convolution. Convolving with gives the Möbius inversion formula
If , its divisor sum is the sum-of-divisors function. Conversely, if , Möbius inversion givesusing the standard divisor identity for the Euler totient function. Therefore the two requested answers are
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 1 1I a Solution Created 2026-09-24 Updated 2026-10-03
The Chinese remainder theorem says that if the positive integers are pairwise coprime and , then for arbitrary residue classes there is a unique residue class satisfyingEquivalently, reduction is a ring isomorphism
For existence, put . Pairwise coprimality gives , so Bézout's identity supplies an integer with . Thenhas the required residues, because every term except the th is divisible by . If and are two solutions, each divides . Pairwise coprimality then implies that their product divides , proving uniqueness modulo .
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 4 10D a Solution Created 2026-09-24 Updated 2026-10-03
The multiplicative order of modulo is the least positive integer such thatIt exists because and are coprime integers.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 4 11H a Solution Created 2026-09-24 Updated 2026-09-29
An arithmetic function is multiplicative when and whenever and are coprime. If and are coprime, every divisor of has a unique factorization with and . Hence the Dirichlet convolution of multiplicative functions satisfiesand , so it is multiplicative.
Let be the identity for Dirichlet convolution, with and for . The Möbius function satisfies . Therefore, using commutativity and associativity,This is the Möbius inversion formula.
Past exam of the mathematics course of the University of Cambridge 2021 ii Paper 2 1I Solution Created 2026-09-24 Updated 2026-09-25
The Möbius function is defined by and, for ,It is a multiplicative arithmetic function: whenever and are coprime.
The summand is multiplicative, so its divisor sum is multiplicative. For a prime power with , only contribute andMultiplying these local identities over the prime divisors of gives
For the final claim, choose distinct primes . The moduli are pairwise coprime, so the Chinese remainder theorem gives an integer satisfyingEvery positive integer then has . HenceThere are infinitely many positive representatives of this congruence class.
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 1 1I Solution Created 2026-09-23 Updated 2026-09-25
If and are coprime, every divisor of is uniquely with and . Hence, for a multiplicative arithmetic function ,
The Möbius function is if a prime square divides , and if is a product of distinct primes. The Euler totient function counts residues modulo coprime to . From the prime factorizations,Both sides of the second identity are multiplicative, and at a prime power ,Therefore
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 2 20H b Solution Created 2026-09-24 Updated 2026-09-25
The Dedekind factorization theorem says that, when a rational prime does not divide the index of an order , a factorizationof the minimal polynomial modulo gives
Let with square-free , and let be odd. The resulting splitting of rational primes in a quadratic field is:
Finally suppose and
has norm , with integers
chosen coprime. ThenIf an odd ramified, then . Reduction modulo gives
. Since is not a square modulo such a prime, . Dividing the equation's divisibility shows as well (use that square-free has -adic valuation one), contradicting coprimality. Hence no prime ramifies.
has norm , with integers
chosen coprime. ThenIf an odd ramified, then . Reduction modulo gives
. Since is not a square modulo such a prime, . Dividing the equation's divisibility shows as well (use that square-free has -adic valuation one), contradicting coprimality. Hence no prime ramifies.
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 3 15D a Solution Created 2026-09-24 Updated 2026-09-25
Start two registers in . Apply to the first and then reversibly evaluate into the second, obtainingThe evaluation can be implemented by repeated squaring and reversible modular multiplication using a number of elementary arithmetic operations polynomial in .
Measure the second register. Because is injective within one period and , the first register becomes a uniformly weighted periodic cosetThe quantum Fourier transform of a periodic coset state followed by measurement returnsReduce the rational number to lowest terms. Sinceits denominator is . Test whether by repeated squaring. The promised injectivity means that is the least positive period, and , so this congruence holds exactly when . The test therefore certifies whether the run succeeded; this is heralded exact quantum period finding when the period divides the register size.
One run succeeds with probabilitybecause success is equivalent to being coprime to . A standard estimate for the Euler totient function gives for all sufficiently large , with the finitely many smaller cases absorbed by changing the positive constant . Repeating independently times therefore makes the probability that every run fails at most . Every step, including the repetitions and the classical verification, takes time polynomial in .
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 3 10D a Solution Created 2026-09-24 Updated 2026-09-25
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 3 1G c Solution Created 2026-09-24 Updated 2026-10-03
Suppose that the positive integer is a decisive number. For every prime number , the composite number satisfies . It therefore cannot be coprime to , so .
The product of all prime numbers below consequently divides . Taking natural logarithms givesChanging the strict endpoint can remove at most one prime term. By part b, for every sufficiently large the right-hand side is at least, for example, . This is impossible for sufficiently large , sinceThus every decisive number lies below one fixed bound, and only finitely many integers can do so.
Reduced fraction Created 2026-10-06 Updated 2026-10-07
A reduced fraction has coprime integers and positive denominator . Distinct reduced fractions with denominators at most differ by at least , since their difference has a nonzero integer numerator over a denominator at most .
The two-isogeny descent quartics associated with square classes and on have no rational points. A rational solution can be scaled to integral with coprime integers . If is odd, reduction modulo sixteen gives or for the positive class, and or for the negative class; none is a quadratic residue. If is even, then is odd and the right side is , with the same sign on the two signed terms. The bracket is odd, so its 2-adic valuation is exactly five, impossible for a nonzero square. These two parity cases exhaust primitive solutions.