Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 125 1 a Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Let be a smooth plane cubic whose identity is an inflection point. A line through and , using the tangent when , has a third intersection counted with multiplicity. The chord-and-tangent group law defines by drawing the line through and and taking its third intersection.
The clean verification of the group axioms uses divisors. The line at infinity meets a Weierstrass cubic in , so three collinear points satisfyConsequently the mapsends the chord-and-tangent construction to addition of divisor classes. The principal divisor criterion on an elliptic curve shows that this map is bijective. Associativity and commutativity therefore follow from the abelian group law on . The tangent convention handles repeated intersections, represents the zero class, and the third point on the line through and represents the inverse of . Hence all group axioms hold.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 4 iii Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
We give the Agrawal–Biswas primality test, which has one-sided error. Small inputs and perfect powers can first be recognized deterministically. For every remaining integer , put and choose a uniformly random monic polynomialUsing repeated squaring in the quotient ring , test the identityThis takes time polynomial in because every intermediate polynomial has degree below .
If is prime, the intermediate binomial coefficients are divisible by , so the identity always holds. Now suppose that is composite and is not a prime power. Choose a prime divisor and write with and . Over ,because an intermediate coefficient equal to is nonzero modulo . Henceis a nonzero polynomial of degree below over .
Reduction of random modulo is uniform among the monic degree- polynomials. The polynomial has at most distinct monic irreducible factors of degree . On the other hand, the number of monic irreducibles of degree obeys the standard lower boundWhenever is one of these irreducibles but does not divide , the tested congruence fails. Thus one trial detects compositeness with probability at leastafter the finitely many small are handled directly. Repeating times makes the probability of missing a composite less than , while a prime is never rejected. Therefore compositeness is in RP, and primality testing is in
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 4 ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
First suppose . Run the RP algorithm for and the RP algorithm for its complement with fresh random bits. If the first accepts, output one; if the second accepts, output zero; otherwise repeat. Neither output can be wrong, and on every input the appropriate algorithm accepts in each round with probability at least . The number of rounds is dominated by a geometric distribution of mean two, so this is an always-correct algorithm with polynomial expected running time.
Conversely, let be always correct when it halts and have expected running time at most . Run it for steps. Markov inequality givesAccept exactly when halts and outputs one; this is an RP algorithm for . Accepting exactly when it halts and outputs zero is an RP algorithm for the complement. Thereforeis equivalent to zero-error expected polynomial time.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 4 i Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
A language belongs to RP when a polynomial-time randomized algorithm rejects every and accepts every with probability at least .
Amplify the algorithm on length- inputs with independent repetitions, accepting if any repetition accepts. Its error on each positive input is at most , while it still never accepts a negative input. Choose all random bits for all repetitions in advance. By the union bound, the probability that this one fixed choice fails on at least one of the at most positive strings is at mostThus some random string works simultaneously for every input of length . Hardwire that string into the polynomial-time computation and compile it into a Boolean circuit. The resulting polynomial-size circuit family decides , proving
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 3 iii Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Yes. The usual collapse relativizes because every machine involved receives the same oracle . Induct on the levels of the polynomial hierarchy. The hypothesis givesIf the preceding level is contained in , then its oracle queries can be simulated in polynomial time with oracle . A nondeterministic machine for the next existential level is therefore only an machine, hence a machine by hypothesis. Complements give the corresponding universal level. The induction yields
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 3 ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
This is the Karp–Lipton theorem. It is enough to place inside . Let , so for a polynomial-time predicate and polynomially bounded strings,The NP search problem that receives and seeks such a has, by part (i), a polynomial-size circuit family producing a valid witness whenever one exists. For each input length there is therefore a polynomial-size circuit such that, for every relevant , existence of a witness implies .
Consequentlywhere the existentially guessed circuit description has polynomial length and evaluation of is polynomial time. This is a description. Hence ; complementation gives the reverse inclusion, and merging adjacent equal quantifier blocks collapses every higher level. Thus the polynomial hierarchy satisfies
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 3 i Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Let be a polynomial-time verifier for , with witnesses of length . Consider the prefix languageThis language lies in NP, so the assumption supplies a polynomial-size circuit family deciding .
Apply the usual search-to-decision reduction. Starting with the empty prefix, append zero if the circuit says that some accepting witness has that extended prefix; otherwise append one. Repeat for positions. Composing the polynomially many copies of the decision circuit produces a polynomial-size circuit . Whenever , at least one accepting extension exists at every step, so the final string satisfiesOn negative inputs the output may be arbitrary, as required.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 2 iii Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Membership follows from . A directed graph is not strongly connected exactly when there is a pair for which is not reachable from . Guessing the pair and using the NL procedure for non-reachability puts non-strong-connectivity in NL, hence strong connectivity is in co-NL and therefore in NL.
For NL-hardness, reduce directed reachability. Given , form by retaining all edges of , adding for every vertex , and adding for every vertex . If is reachable from in , then any reaches any in alongConversely, if is strongly connected then reaches . A simple -to- path cannot use an added edge out of before arriving at , and every added edge into merely returns the path to its starting vertex; deleting the resulting cycle leaves an -to- path made from edges of . The construction is computable in logarithmic space, so deciding strong connectivity is
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 2 ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
It suffices to recognize non-reachability in NL, since directed reachability is NL-complete. Let be the number of vertices reachable from by a directed path of length at most . Clearly . The inductive counting argument computes and verifies from using logarithmic space.
For each vertex , reachability within steps has an NL certificate: guess such a path. Non-reachability within steps can be certified relative to the trusted value by enumerating vertices , exhibiting paths of length at most to exactly distinct vertices, and checking that none is or has an edge to . Because there are exactly reachable vertices, this list cannot omit a reachable predecessor. Counters, vertex names and one guessed path need only logarithmic space. Repeating this check in a fixed vertex order and counting the positive cases produces the exact .
After rounds, the procedure knows the number of all vertices reachable from . It accepts non-reachability of after certifying, by the same complete enumeration, that is absent. Thus the complement of directed reachability belongs to NL. Since every NL language reduces to reachability and log-space reductions are closed under complementation, this proves the Immerman–Szelepcsényi theorem
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 2 i Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
A decision problem is NL-complete when and every language has a deterministic logarithmic space many-one reduction to .
The directed graph reachability problem is the standard example. It lies in NL because a machine stores the current vertex and a counter, nondeterministically guesses at most successive edges, and accepts upon reaching ; this uses space. For hardness, given an NL machine and input , construct its configuration graph. Its configurations have logarithmic length, adjacency can be computed in logarithmic space, andAdding one target joined from every accepting configuration gives the required logarithmic-space reduction.
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 1 ii Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
The problem belongs to NP: an assignment in is a polynomial-length certificate in computational complexity, and substitution verifies every equation in polynomial time.
For NP-hardness, reduce the Circuit satisfiability problem. Introduce one variable in for every wire of a Boolean circuit. A logical negation gate is enforced by , and a logical conjunction gate is enforced by . For a logical disjunction gate use the suggested quadratic equationwhich is equivalent to for bits . Add the linear equation for the designated output wire.
The construction introduces one variable and one equation per wire or gate, so it is a polynomial-time many-one reduction. A satisfying circuit input extends uniquely through its gates to a solution of the equations, and any solution gives a consistent accepting circuit computation. Since circuit satisfiability is NP-complete, quadratic-equation satisfiability over F2 is therefore
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 124 1 i Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
This is Ladner's theorem. Assume and let be the Boolean satisfiability problem. Enumerate all clocked polynomial-time deterministic machines as and all clocked polynomial-time candidate reductions as . A standard delayed-diagonalization schedule gives a nondecreasing, unbounded, polynomial-time computable function that increases only by one. DefineThe schedule alternates two requirements. At even stage , it holds fixed while searching successively larger finite sets of strings for an on which disagrees with membership in ; after finding one it increments . At odd stage , it searches for an such thatand then increments . Length and simulation budgets are increased slowly enough that each finite search is eventually exhaustive but computing still takes polynomial time. This is achieved, for example, by permitting only simulation steps and searches on strings of logarithmic length before deciding .
Every stage must finish. If an even stage remained forever, then would eventually be a fixed even number, so and would differ on only finitely many strings. If decided , those finitely many exceptions could be hardwired to decide in P, contradicting . If an odd stage remained forever, then would eventually be odd and would be finite. A correct polynomial-time many-one reduction from to would again put in P. Thus every fails to decide , and every fails to reduce to .
Finally, : compute and, when it is even, use the usual polynomial-time certificate for satisfiability. Hence
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 123 5 e Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
A prime ideal of is principal exactly when its Artin symbol inis the identity. The group has order two. Applying the Chebotarev density theorem to the identity conjugacy class gives density
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 123 5 d Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
PutIt contains and has degree two over . The three quadratic subfields have discriminants , , and , so the biquadratic discriminant formula givesThe relative discriminant formulatherefore gives : no finite prime ramifies. The extension is totally real, so no infinite prime ramifies either. Since , the Hilbert class field has degree two over . Consequently
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 123 5 c Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
The Chebotarev density theorem states that for a finite Galois extension and a conjugacy class , the unramified primes whose Frobenius conjugacy class is have Dirichlet density
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 123 5 b Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Let and let be its character group. Character orthogonality givesFor , the prime term of isup to a function bounded as , since higher prime powers converge there. The trivial character contributeswhereas every nontrivial character contributes because its -function is nonzero at . Thereforeand the density is .
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 123 5 a Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 123 4 f Solution by
Codex 0 Created 2026-09-24 Updated 2026-10-03
Indeed, global class field theory assigns to a finite abelian the open norm group of an abelian extension . It contains a congruence subgroup . By part (e), this is the norm group of . The inclusion-reversing class-field correspondence therefore gives
Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 123 4 e Solution by
Codex 0 Created 2026-09-24 Updated 2026-09-25
Pinned article: Introduction to the OurBigBook Project
Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
Intro to OurBigBook
. Source. We have two killer features:
- topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculusArticles of different users are sorted by upvote within each article page. This feature is a bit like:
- a Wikipedia where each user can have their own version of each article
- a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.Figure 1. Screenshot of the "Derivative" topic page. View it live at: ourbigbook.com/go/topic/derivativeVideo 2. OurBigBook Web topics demo. Source. - local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
- to OurBigBook.com to get awesome multi-user features like topics and likes
- as HTML files to a static website, which you can host yourself for free on many external providers like GitHub Pages, and remain in full control
Figure 2. You can publish local OurBigBook lightweight markup files to either OurBigBook.com or as a static website.Figure 3. Visual Studio Code extension installation.Figure 5. . You can also edit articles on the Web editor without installing anything locally. Video 3. Edit locally and publish demo. Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension. - Infinitely deep tables of contents:
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact





