Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 130 1 iii Solution Created 2026-10-03 Updated 2026-10-05
Use the cyclic logarithmic coloringHere the floor function places in the unique half-open real interval . If , thenbecause . For any real and , is either or . Applying this to the logarithms of and shows that their bin indices differ by or , and hence have different residues in modular arithmetic modulo . This proves the required separation, including both endpoints of the prescribed ratio interval. The half-open bins remove any ambiguity at their boundaries.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 324 2 b iii Solution Created 2026-10-03 Updated 2026-10-05
Let the known phase gate on the answer register bewhere the comparison uses ordinary integers, not modular arithmetic. A reversible circuit computes the predicate, applies a Pauli Z gate to its flag, then performs uncomputation.
The compute-phase-uncompute construction now givesUse modular-oracle inversion by negation to realize the last operation with one further query. Exactly two oracle queries implement , returning the answer register and comparison workspace to their initial states.