Past exam of the mathematics course of the University of Cambridge 2011 ii Paper 1 12G Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 67 1 a Solution Created 2026-10-03 Updated 2026-10-07
Cyclic periodicity on implies that the least positive period divides : the shifts preserving the function form a subgroup of the cyclic group. Injectivity within one period says that distinct residue classes modulo have distinct function values. Write .
Prepare the uniform superposition state by applying the quantum Fourier transform to , and evaluate reversibly into a second quantum register. This is efficient because the given classical Boolean circuit can be converted into a reversible circuit, with its workspace cleaned by uncomputation. The resulting quantum state isMeasuring the function quantum register leaves a uniform coset state for some . The amplitude at after a quantum Fourier transform isThe finite geometric series is zero unless is a multiple of , and then equals . Thus a computational-basis measurement produces a uniform Fourier sampleThe exact period recovery from a Fourier sample computesA greatest common divisor is computable in time polynomial in . The candidate is always a divisor of the true period, and equals it precisely when is coprime to .
For the success flag, compute and compare with . If , injectivity within the first period makes these unequal. If , periodicity makes them equal, including . Hence accept and output exactly when this comparison succeeds; otherwise report failure. This is heralded exact quantum period finding when the period divides the register size, with no false acceptance. The case succeeds even on the sample .
The exact success probability iswhere is the Euler totient function. For , the prime-product formula gives . A Rosser–Schoenfeld totient bound supplies the needed lower bound for large . Every single attempt, including verification, has the assumed polynomial-in- gate cost. Repeating times gives constant success probability with a certified result whenever one is found.
The printed in the totient hint should be a lower-bound statement, . Literally, is false: at primes , . Likewise the exact single-sample success probability need not be ; for prime period it tends to one. The useful intended guarantee is the displayed inverse-log-log lower bound, not a universal upper bound. If an algorithm satisfying the literal success upper bound is desired, one can additionally accept an otherwise certified run only when independent fair bits are all zero. This retains a detectable failure flag and polynomial runtime, and has success at most , but deliberately weakens the useful guarantee. The standard unsuppressed algorithm above gives the stronger intended performance. Small can be handled directly. Primary evidence for the totient lower bound is Theorem 15, equations (3.41)–(3.42), in denisevellachemla.eu/Rosser-Schoenfeld-1962.pdf .
Past exam of the mathematics course of the University of Cambridge 2013 ia Paper 4 1E Solution Created 2026-09-24 Updated 2026-10-07
The greatest common divisor is the largest positive integer dividing both and . To prove Bézout's identity without assuming a factorization theorem, consider the nonempty set of positive integer linear combinationsIt contains , so the well-ordering principle gives a least element . By Euclidean division, write with . Thenis another integer linear combination. If , it contradicts minimality, so and . Applying the same argument to gives . Conversely, every common divisor divides every integer linear combination and therefore divides . In particular every positive common divisor is at most . Thus andThis also proves the requested divisibility implication for any integer : if and , then .
For the scaling identity for greatest common divisors, put with . Since divides and , . On the other hand, multiplying Bézout's identity by expresses as , so . Positivity gives . Therefore without using prime factorization,
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 58 1 a Solution Created 2026-10-03 Updated 2026-10-07
The PDF's small superscript is essential: . Interpret as the least positive period, the multiplicative order of modulo . If one permitted an unspecified nonminimal period, the answer would not be identifiable; for example, gives the same constant function with period one or period eight. Under the promised periodic modular-exponential interpretation, , so is a unit. ThusIn particular, different residue classes modulo have different function values, which is necessary for the usual quantum period finding coset argument.
Prepare by applying the quantum Fourier transform to the first register. Use repeated squaring to precompute , then multiply the value register by that known number controlled on bit of . These controlled modular multiplications are reversible because is a unit; their inverses use the modular inverses of the same constants. This produces with a polynomial number of the assumed arithmetic operations. Known work registers can be uncomputed.
Measure the value register. Since , its fiber is exactly one coset, and the first register becomesThe quantum Fourier transform of a periodic coset state is supported uniformly on the outcomes , . Indeed the inner geometric series is zero unless , and each allowed amplitude has modulus .
Take two independent Fourier samples and returnThis is two-sample exact period recovery. The Chinese remainder theorem makes divisibility of independent uniform residues independent across the different prime divisors of . For each such prime , both and are divisible by with probability . ThereforeThe number-theoretic facts used here are the Chinese remainder theorem, the Euler product for the Riemann zeta function at two, and . The candidate can also be certified by : it divides the least period, so this equality holds exactly when it is the full period. Each preparation, reversible evaluation, QFT, measurement and greatest common divisor calculation has the assumed or standard polynomial time cost in . Two runs suffice for the desired constant success probability. Quantum period finding recovers the least period with probability at least in polynomial time.
Past exam of the mathematics course of the University of Cambridge 2014 ia Paper 4 1E Solution Created 2026-09-24 Updated 2026-10-06
The Euclidean algorithm givesThus the greatest common divisor is . The extended Euclidean algorithm reverses these divisions:This supplies the Bezout identity with , .
To obtain all solutions of a linear Diophantine equation, subtract this particular solution from any other and divide by . The result is . Since and are coprime integers, divides , givingEvery displayed pair satisfies the original linear Diophantine equation, so the parametrization is exhaustive.
For the modular arithmetic calculation, , so is the modular inverse of . Multiplication gives . The admissible integers are for , ending at ; the next is . There are such integers.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 14 5 2 Solution Created 2026-10-03 Updated 2026-10-06
Both relators have zero exponent sums, so abelianization gives , with meridian variables corresponding to . The universal abelian cover has deck transformation group and coefficient group ringThe generalized Heegaard diagram gives a two-dimensional spine with one vertex, three edges and two faces. Its lifted cellular chain complex iswhere chosen lifts of the cells giveThe two columns are the abelianized Fox derivatives of and . The Fox calculus identity gives ; this can also be checked by multiplying the displayed matrices. There is no three-cell in this spine. One may use the lifted spine because its deformation retraction from lifts to the universal abelian cover.
The maximal minors of the Alexander matrix, in row-pair order , areTheir greatest common divisor in is , since have no common nonunit divisor. Accordingly the multivariable Alexander polynomial isThe allowed units are . The single-variable specialization convention can introduce extra factors; the answer here is the genuinely multivariable Alexander polynomial.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 61 1 a Solution Created 2026-10-03 Updated 2026-10-06
Use the positive-sign quantum Fourier transformOrthogonality of the finite-group characters makes a unitary operator. Here is the least positive period. The injectivity within one period implies : write , . Periodicity gives , and injectivity forces . Put .
Start with two available computational basis states . Apply to the first register and query the modular-addition quantum oracle:Measure the second register. For some , the first register becomes the normalized coset stateThe quantum Fourier transform of a periodic coset state isIndeed, the inner geometric sum vanishes unless the Fourier label is a multiple of . Measuring that label gives for a uniformly random . Compute, by the Euclidean algorithm,Thus exact period recovery from a Fourier sample succeeds whenever is coprime to , andHere is the Euler totient function. The classical number-theory input is the totient lower bound from the Mertens product: for sufficiently large , for an absolute , with the finitely many small cases handled separately. For recovery is certain; for its probability is . The useful asymptotic probability statement is a lower bound, hence notation; it can be much larger for particular periods, for example a prime period.
There is one oracle query, two Fourier transforms and two measurements. The final greatest common divisor and division use polynomial time in . This meets the specified primitive-operation model without assuming that an arbitrary- Fourier gate is free in another gate model. If a constant success probability is wanted, repeat independently times and return the least common multiple of the candidates: each candidate divides , and one successful sample makes that least common multiple exactly .
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 61 2 iv Solution Created 2026-10-03 Updated 2026-10-06
Write , and . The easy starting state is uniform over all -bit labels, so its good fraction is , not . For distinct primes one has . If both primes are odd, and , giving . If one prime is two, the other is an odd prime ; since has bits, , and .
The uniform coprime state for a semiprime can now be prepared by one exact Grover rotation. SetPrepareUse the good subspace spanned by with and . Its squared overlap with is exactly . The Euclidean algorithm supplies a reversible computation of the membership predicate, including the range check; condition a sign flip on membership and the extra qubit being one, then uncompute the workspace. This implements .
The starting-state reflection uses the inverse of its known preparation and a reflection on the all-zero state. Applying once invokes exact amplitude amplification at , and givesThe extra qubit factors off, and the arithmetic workspace is returned to zero. Although the stated range includes , that label is not coprime to itself, so the predicate is equivalent and avoids admitting labels outside the intended range.
The supplied determine in polynomial time; no factoring procedure is needed. Binary arithmetic, range comparison, the reversible greatest common divisor, the two starting-state reflections and the controlled sign flip all have polynomial-size circuits. Thus the construction takes polynomial time in in the ideal model allowing the specified one-qubit state preparation. Exactness uses the rotation with known amplitudes ; with a fixed finite approximate gate library one obtains arbitrary accuracy with precision overhead, rather than an automatic promise of exact state preparation. In the ideal model the preparation succeeds with certainty, without rejection sampling. If desired, the extra can be reset by a Pauli X gate.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 124 3 c Solution Created 2026-10-03 Updated 2026-10-06
For an additive arithmetic function , one standard form of the Turán-Kubilius inequality usesIt states, with an absolute constant,For real , this also bounds the variance under the discrete uniform distribution, because centering at the actual expectation minimizes the mean square.
For the prime omega function, . The Mertens theorem for reciprocal primes states . The contribution of higher prime powers is bounded by , as proved in 1(a). It follows that and . Writing , the Turán-Kubilius inequality and Chebyshev inequality therefore yieldThe bounded error in is absorbed by, for example, using the threshold around for sufficiently large .
For the multiplication table problem, call a pair good when and . The preceding Chebyshev inequality excludes only pairs by either of the first two conditions. For the greatest common divisor condition, linearity of expectation under uniform sampling of the two coordinates givesMarkov inequality therefore excludes only another pairs.
The prime factors of a product form the union of those of its factors. Consequently, for every good pair,On the other hand, apply the proved concentration estimate at . Since , for large every integer with is exceptional there. There are only such integers. Products of good pairs lie in this exceptional set; products having only bad representations are at most as numerous as the bad pairs. This proves the multiplication-table upper bound, using distinct prime factors alone:
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 324 1 ii Solution Created 2026-10-03 Updated 2026-10-06
Let . In the Shor algorithm, first use classical arithmetic to deal with even and perfect powers, and to reject prime inputs. Perfect-power recognition and primality testing have polynomial-time classical algorithms. Factoring a perfect power , with , already gives a nontrivial factor . We may therefore consider an odd composite with at least two distinct prime factors.
Choose uniformly from and compute its greatest common divisor with using the Euclidean algorithm. A proper nontrivial divisor ends the computation. Otherwise is a unit, and the remaining task is quantum order finding. SetPrepare a uniform quantum superposition in a -qubit register and use quantum modular exponentiation in a second register to obtainRepeated squaring and reversible modular multiplication implement this step with polynomially many quantum gates in . Apply the inverse quantum Fourier transform to the first register and perform a quantum measurement in the computational basis, obtaining . Measuring the second register first, and Fourier-transforming the resulting periodic coset, gives the same distribution of .
Here is a quantitative quantum Fourier sampling bound for order finding. If , multiplication by cycles its orbit states. The Fourier eigenstates of that cycle have eigenvalues , and the initial state has squared overlap with each, for . ThereforeConditioned on a particular eigenphase , its nearest integer outcome obeys and has probability at least . Indeed the absolute amplitude is , where . For , the numerator is at least and the denominator at most ; the limiting value at is one.
If , the fraction is reduced, and givesUse continued-fraction recovery in quantum order finding. The relevant approximation theorem says that reduced fractions satisfying are continued fraction convergents of . For an input rational of digits, their candidates can be enumerated classically in time, and their denominators are at most the reduced input denominator. This is the supplied continued-fraction result; discard candidate denominators exceeding . A zero measurement is treated as a failed order-finding sample.
For each remaining even candidate denominator , compute by repeated squaring, and try and . Return only a divisor with ; otherwise repeat the quantum sample or choose another . This candidate-denominator gcd post-processing cannot return an incorrect factor, since its output is checked directly. When the recovered denominator is the true even multiplicative order and the square root of one is nontrivial, part (i) guarantees success. Checking before trying the gcds is also a valid, more restrictive convention; the single-run distinction matters in part (iii).
Two further standard quantitative facts explain why repetitions remain efficient. First, for a uniformly chosen unit modulo an odd integer with at least two distinct prime divisors, the probability of a useful unit in Shor factorization is at least : its true multiplicative order is even and . To see the source of this bound, the Chinese remainder theorem for unit groups makes the prime-power components independent. Each odd-prime-power unit group is cyclic. If its 2-primary order is , the probability of the largest possible value of is , and the probability of any specified smaller value is at most . Failure requires all components to have the same : either all zero, making odd, or all the same positive value, making the halfway power in every component. Conditioning on one component, the chance another component matches it is at most , so total failure is at most .
Second, the fraction of phase numerators coprime to is , where is the Euler totient function. The elementary totient-ratio lower bound suffices: if the distinct prime divisors are , then and . The totient product formula therefore givesThus for a good , the probability of sampling a coprime phase numerator with the required accuracy is at least . This is inverse-polynomial in the input length, so polynomially many repetitions achieve any fixed success probability. The quantum Fourier transform uses elementary rotations and Hadamard gates in the ideal gate description, and the other quantum and classical stages are polynomial in .
The reduction is therefore polynomial in the bit length:A small denominator need not itself be the true multiplicative order; verification of the final factor is essential, and no guarantee is claimed for every individual sample.
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 ib Paper 2 20H c Solution Created 2026-09-24 Updated 2026-10-05
Every reachable state reaches zero deterministically in steps. For , choose a supported lifetime ; zero can jump to and then count down to . Thus the chain is an irreducible Markov chain on . Its positive-probability first return lengths are exactly the support of ; all other return lengths are sums of such lengths. Their greatest common divisor is therefore one by assumption, so the chain is an aperiodic Markov chain.
The equilibrium residual-life distribution isIt is a probability distribution because the tail-sum identity gives . With zero masses outside ,so it is a stationary distribution. This also displays why finite mean is needed for normalization.
Use the countable-state Markov chain convergence theorem: an irreducible, aperiodic, positive recurrent discrete-time chain on a countable state space has a unique stationary distribution and for every pair of states. All hypotheses were verified, including positive recurrence in part (b). Since and ,The finite-state convergence theorem alone would not suffice when the lifetimes are unbounded. The gcd hypothesis is also necessary for this ordinary limit: deterministic lifetime 2, for example, produces alternating renewal probabilities rather than convergence.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 316 3 v Solution Created 2026-10-03 Updated 2026-10-06
A simultaneous transit in a resonant chain requires both conjunction patterns to admit the observer's longitude at the same time. In the leading mean-conjunction geometry put . The necessary phase compatibility at symmetric centres isLet . Eliminating , and using that ranges over multiples of , gives the exact modular compatibility criterionHere denotes the greatest common divisor. For the orders above, the two phase sets intersect only whenThe common directions are the two quadratures relative to periapsis. In reduced resonances this requires and odd; otherwise the apparent second-order ratios reduce to different resonance orders. There is no additional restriction on those odd values from angular compatibility alone. A shared direction and suitable temporal phase can be chosen, and the rational period ratios allow its recurrence.
This is a potential low-amplitude configuration, not a guarantee of an observed triple exoplanet transit. The observer must lie in the common orbital plane and near an allowed direction. Finite stellar radii, nonzero libration amplitudes of a resonant argument, apsidal motion and asymmetric centres broaden or change the possibilities. At finite , true simultaneous alignment obeys the more precise equations and , with . Thus the order-only conclusion is not a universal necessary condition for every eccentric resonant chain.
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 2017 ii Paper 2 16I a Solution Created 2026-09-24 Updated 2026-10-05
A finite field extension is a separable field extension if every element of has a minimal polynomial over with distinct roots in an algebraic closure. The primitive element theorem says that a finite separable field extension is for some .
If is finite, then so is . The multiplicative group of a finite field is cyclic, so a generator of generates as a field. To justify the group fact, a finite subgroup of a field's multiplicative group is cyclic: in a finite abelian group its exponent is attained as an element order, while the polynomial root bound forces its size to be at most that exponent.
If is infinite, first consider . The minimal polynomials of and have distinct roots in an algebraic closure. Choose , , avoiding the finitely many values for which for a pair other than . Set . Over , the polynomials and have precisely one common root, . Their monic greatest common divisor is therefore , so and . Thus . Induct over finitely many generators of the finite separable field extension. This proves every finite separable extension is simple.
Past exam of the mathematics course of the University of Cambridge 2021 ia Paper 4 6E a i Solution Created 2026-09-24 Updated 2026-09-25
The Euclidean algorithm repeatedly replaces a pair by without changing its greatest common divisor. Reversing the divisions expresses as an integer linear combination , which is Bézout's identity.
Past exam of the mathematics course of the University of Cambridge 2021 ib Paper 3 10G v Solution Created 2026-09-24 Updated 2026-09-25
By the prime ideal quotient criterion,For a principal ideal, this is precisely the assertion that is a prime element. This closes the cycle and proves that (i)--(v) are equivalent.
Now let be a surjective ring homomorphism, where is a principal ideal domain and is an integral domain. WriteIf , the first isomorphism theorem for rings makes an isomorphism. Otherwiseis an integral domain, so the equivalences just proved show that is maximal and is a field.
Next suppose that the polynomial ring is a principal ideal domain. It follows first that is an integral domain. For nonzero , the idealis principal. Since divides the nonzero constant , it is constant; since it also divides , that constant divides the coefficient , so is a unit. Therefore , and there are polynomials such thatSetting gives , so every nonzero is a unit. Hence
Finally, let be an integral domain in which every two nonzero elements have a greatest common divisor. If an irreducible divides , then is either a unit or an associate of . In the second case . In the first case, the Euclid lemma in a greatest-common-divisor domain gives . Thus every irreducible element of is prime.
Primitive lattice element 2026-10-06
A nonzero element of a free abelian group is primitive when it is part of an integral basis, equivalently when some homomorphism to takes it to one. Its coordinates have greatest common divisor one. This lattice meaning differs from a primitive homology class in the coalgebra sense.
Pythagorean triple 2026-10-05
A Pythagorean triple consists of three positive integers satisfying . It is primitive when their greatest common divisor is one. Reducing their square numbers modulo shows that at least one leg is divisible by ; reducing modulo shows that both legs cannot be odd.
For positive integers , the greatest common divisor scales by the common multiplier . If , then is a common divisor of . Meanwhile Bézout's identity expresses as an integer linear combination of , so their greatest common divisor divides . These two comparisons prove the identity without prime factorization.