Past exam of the mathematics course of the University of Cambridge 2016 ia Paper 1 10E Solution Created 2026-09-24 Updated 2026-10-06
The Rolle theorem states that if a real function is continuous on , differentiable on , and has equal endpoint values, then its derivative vanishes somewhere in . Order the distinct real roots as . The theorem gives a root of in each interval . These intervals are disjoint, so the obtained roots are distinct:
We prove the requested bound for positive roots of a polynomial by mathematical induction on the number of nonzero terms. In fact, the proof also works with roots counted according to their multiplicity. Write for the number of sign changes and for the positive-root count.
A one-term polynomial has no positive roots and no sign changes. For the induction step, factor out the smallest power of :For this factor is nonzero, so , including multiplicities, and . Differentiation removes exactly the constant term:The exponents remain strictly increasing, and the positive multipliers do not change coefficient signs. The induction hypothesis therefore gives
First suppose . Removing removes exactly one sign change, so . If has positive roots of multiplicities , its derivative has multiplicity at and, by the Rolle theorem, an additional root between each pair. Thus the Rolle root count with multiplicities giveswhen there is a positive root. ConsequentlyIf there is no positive root, the desired bound is automatic.
Now suppose , so . Again the zero-root case is immediate. Otherwise, multiplying by if necessary lets us assume and without changing roots or sign changes. For sufficiently small ,since and the lowest-power term of has positive coefficient. Choose such a point before the first positive root . The mean value theorem on gives a point withBut . The intermediate value theorem applied to the polynomial therefore gives an extra root in , before . It is distinct from the roots at and those between consecutive roots. HenceBoth sign cases complete the induction:An initial sign change allows one extra positive root; without that sign change, the derivative must already turn before the first positive root. This is the upper-bound part of the Descartes rule of signs. The multiplicity claim used above follows by differentiating with : the derivative has a factor and its remaining factor is nonzero at .
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 109 3 Solution Created 2026-10-03 Updated 2026-10-06
Give a vertex the binary value . The binary order on the discrete cube orders vertices by increasing ; its initial segment consists of the values . Write for the number of cube edges whose two endpoints lie in , and for its external edge boundary. The degree sum identity isThe exact edge-isoperimetric inequality iswhere is the number of ones in the binary expansion of . Equality is attained by . Indeed, is a down-set, so every downward neighbour of each vertex is also present. Counting each internal edge at its upper endpoint gives . We prove the equivalent edge-isoperimetric theorem for binary initial segments, , by mathematical induction using section compression in binary order.
Fix a coordinate and write for the two sections with coordinate absent or present, deleting that coordinate. Their inherited binary order is the binary order on the remaining coordinates. Replace each section by the binary initial segment of its own size. This preserves . The edges split into internal edges in the two sections and crossing edges, givingBy the mathematical induction hypothesis, the two section edge counts do not decrease. After compression, the sections are nested initial segments, so their intersection has the largest possible size, . Thus each section compression does not decrease the internal edge count.
Apply these compressions repeatedly whenever one changes the family. The integer potential decreases strictly at every nontrivial step: within either fixed-coordinate section, the initial segment uniquely minimizes the sum of the vertex values among sets of the prescribed size. Therefore the process terminates with a family compressed in every section.
We need a small structural fact about families compressed in every binary section. If such a family is not a binary initial segment, choose a missing vertex and a present vertex with . They cannot agree in any coordinate: in that coordinate's section, the compressed initial segment would contain whenever it contains . Thus . The same argument applies to every inversion. There cannot be any vertex strictly between and in binary order: a present one would form an inversion with , and a missing one would form an inversion with , forcing it to be or , respectively. Hence . Together with , this givesEvery vertex below must be present, and every vertex above absent, by the same inversion argument. Therefore the only possible exception to a binary initial segment isFor , this replaces the top vertex of an -dimensional subcube by the singleton . Removing that vertex loses internal edges, and adding the singleton creates exactly one edge, to the empty set. ThusThe dimensions are immediate. This finishes the mathematical induction: compression leads either to the desired initial segment or to an exception with no larger edge count. Hence the exact edge-isoperimetric inequality in the discrete cube holds, and binary initial segments maximize the number of contained edges at every size.
For the square-face assertion, let count the two-dimensional cube faces all of whose vertices are in . We use mathematical induction again, now also using the edge theorem just proved. Faces lying wholly in one coordinate section contribute . Every face crossing coordinate is determined by an edge lying in both sections, soCompress the two sections as before. Their internal face counts do not decrease by mathematical induction. Put and . The edge theorem and nesting of binary initial segments giveAfter compression, the intersection is precisely . Thus section compression does not decrease the face count either. The same decreasing potential gives termination, and the same classification leaves only a binary initial segment or .
In the exceptional family, removing the top vertex loses square faces, one for each pair of downward coordinate directions. The added singleton lies in no square face, because it is the only vertex in its upper section. ConsequentlyDimensions below two have no square faces and start the mathematical induction. We have proved that binary initial segments maximize contained square faces:For an explicit value, the down-set property counts every face at its unique top vertex, givingThis establishes binary initial segments maximize contained square faces for arbitrary sizes, rather than only sizes that are powers of two.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 109 4 Solution Created 2026-10-03 Updated 2026-10-06
We prove both the general modular intersection bound for a set family and its sharper uniform version, the Frankl-Wilson theorem. Let be prime, let have size , and let be a family of subsets of . Suppose each member's cardinality modulo is outside , whereas every intersection of two distinct members has cardinality modulo in . Then the general modular intersection bound iswith for . If every member has the same size and , the uniform Frankl-Wilson theorem sharpens this toHere , so in particular . Primality matters because the argument takes place over the finite field .
For each , define the polynomialAt the indicator vector of another member , this polynomial is zero if and nonzero if . Replace every positive power of by in its expanded monomials, obtaining a multilinear polynomial of degree at most . This multilinear reduction on the Boolean cube preserves values at every zero-one vector.
The resulting polynomials are linearly independent. Indeed, if , evaluating at leaves ; the nonzero diagonal value forces for every . But multilinear polynomials of degree at most lie in the vector space with basis , whose dimension is . The bound on the dimension of a vector space gives the general modular intersection bound for a set family. This is the polynomial method in combinatorics: the intersection conditions produce an evaluation matrix with nonzero diagonal and zero off-diagonal entries.
To prove the sharper uniform bound, we first establish injectivity of inclusion between adjacent set layers. Over a field with field characteristic zero or greater than , suppose coefficients , indexed by -sets in , satisfyThen all coefficients are zero. For this is immediate. For , fix distinct and subtract the equations for and , where is a -set avoiding . The result isApply mathematical induction with degree on the remaining coordinates; its size condition holds because . This forces for every such . Since all -sets are linked by one-element exchanges, all coefficients equal some . An original equation then gives , and the characteristic assumption gives .
For every with , now form the multilinear polynomialThis is the multilinear reduction of , so it vanishes at every indicator vector of a -set. These are linearly independent: in a nonzero linear relation choose the largest degree of a coefficient-bearing . The degree- terms have coefficients . The inclusion lemma makes these nonzero unless all degree- coefficients vanish, a contradiction. It applies because , , and .
The are also independent jointly with the . Evaluating a relation at the indicator vectors of the family first forces every coefficient of to vanish, since the vanish there; their own independence then kills the remaining coefficients. All these polynomials have degree at most , soSubtracting the lower-degree contribution proves the sharp Frankl-Wilson theorem. For the general bound already gives , so no auxiliary polynomials are needed.
For the even cross-intersection assertion, work instead in the vector space over a finite field and letThe parity assumption is exactly in . By bilinearity, all vectors in are orthogonal to all vectors in , giving . The coordinate dot product is nondegenerate over , so . There is no requirement that be zero; only this dimension formula is used. Each distinct set has a distinct indicator vector, and a dimension- binary vector space has elements. Therefore the even cross-intersection bound isThis is the even cross-intersection bound, including empty families, for which the product is zero.
For odd intersections, append a final coordinate one to every indicator vector:Their dot product is in . Applying the same orthogonal complement over the binary field argument to their spans, now in dimension , gives the required odd cross-intersection bound:Appending the coordinate preserves distinctness of the vectors, so the span-cardinality estimates remain valid. This proves the odd cross-intersection bound directly by reducing the odd condition to an even one in a larger vector space.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 112 1 i Solution Created 2026-10-03 Updated 2026-10-06
Write for Lebesgue measure on . The Prékopa–Leindler inequality says that if and nonnegative measurable functions satisfythen their Lebesgue integrals satisfyIt suffices initially to take . Zero integrals give a trivial bound; infinite integrals can be handled by truncating and and applying the monotone convergence theorem. As usual, a zero factor makes the asserted lower bound zero.
Here is a one-dimensional proof using quantile functions. Put , , and let , , be the quantile functions of the probability density functions and . At almost every the quantile derivative identity givesFor completeness, these reciprocal derivative identities follow by differentiating the corresponding cumulative distribution functions at their Lebesgue points and then differentiating the inverse function relation. Sampling a quantile function at a uniform argument samples the density itself, so the exceptional set, including locations where the density vanishes or is infinite, has probability zero. Gaps in a density's support can give jumps in its quantile function; they do not invalidate the argument below.
The monotone function obeys the monotone substitution inequality:This form uses the ordinary derivative of a monotone function, rather than any jump or singular part: its weighted image measure is dominated by Lebesgue measure. One can see this first for intervals, where , and then extend to nonnegative measurable functions by simple function approximation. Thus no assumption of strictly positive smooth probability density functions is hidden in the proof.
Using the hypothesis and the weighted arithmetic-geometric mean inequality, we obtainIntegrating over proves the one-dimensional Prékopa–Leindler inequality.
For higher dimensions, use mathematical induction and Tonelli theorem. Write and setApply the one-dimensional Prékopa–Leindler inequality to the last-coordinate slices, with . It givesApply the induction hypothesis in and use Tonelli theorem once more. For finite total integrals, infinite slice integrals occur only on null sets and may be replaced by zero there; this only weakens the displayed premise. If the data are only Lebesgue measurable rather than Borel measurable, the exceptional nonmeasurable slices can be handled in the same way for , and by setting on its exceptional null set. The total integrals are unchanged, and the slice premise holds everywhere it is needed. The result therefore holds for general nonnegative measurable functions.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 120 1 e Solution Created 2026-10-03 Updated 2026-10-06
Write the input word over an alphabet as . Starting with , obtain from by linear-time multiplication in an automatic structure with . Mathematical induction givesThe time complexity of step is at most a constant times . Summing the costs givesThe automatic structure for a group, and are fixed, so the required representative isFor the empty word, return in constant time.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 120 4 Solution Created 2026-10-03 Updated 2026-10-06
For (1)(a), a primitive recursive function is obtained by a finite construction from the zero function, successor function and projection functions, using function composition in recursion theory and primitive recursion. The recursion rule, with parameters , isHere have already been constructed. All these functions are total on nonnegative integers: the initial functions are total, composition preserves totality, and ordinary mathematical induction proves totality of each recursion.
For (1)(b), use a shifted hyperoperation sequence, beginning with addition. Defineand, for each fixed , defineThe first three members are therefore addition, multiplication and exponentiation:The exponentiation convention includes , hence . The next member iterates exponentiation, with ; there is no need for an exceptional domain restriction at .
For (1)(c), is a primitive recursive function by its displayed recursion. If is a primitive recursive function, thenare primitive recursive functions, using constants, projection functions and function composition in recursion theory. Primitive recursion applied to gives . Mathematical induction on the fixed rank proves every member of the sequence is primitive recursive. This does not assert that the joint three-variable evaluator is a primitive recursive function.
For (2), as written, the answer is no: the empty set is semidecidable, whereas a total computable function from to always has a nonempty range. This is the only obstruction. To prove the stronger useful statement, suppose is a nonempty computably enumerable set and choose . Fix a Turing machine which halts exactly on the inputs in . Its bounded halting predicateis primitive recursive: encode configurations arithmetically, iterate its total single-step operation times by primitive recursion, and check the halt state. A halted configuration is kept fixed. This is a bounded simulation, not unbounded waiting.
Fix a primitive recursive pairing function with primitive recursive inverse coordinate functions. For example, the Cantor pairing function has inverses obtained by bounded minimization. DefineThe two coordinate functions, the bounded predicate, and the finite case distinction are primitive recursive functions, so is a primitive recursive function. Its values always lie in . Conversely, if , its computation halts within some finite , and . ThusThe range need not be a computable set; deciding whether a value occurs anywhere in this total enumeration is an unbounded search.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 120 5 Solution Created 2026-10-03 Updated 2026-10-06
A many-one reduction is a total computable function such thatA Turing reduction is an oracle machine which, with membership oracle , halts on every input and computes the indicator function . It may make finitely many adaptive queries on each input. A many-one reduction gives a Turing reduction by a single query, but Turing reducibility allows more general procedures.
The Friedberg–Muchnik theorem states that there are computably enumerable sets with incomparable Turing degrees:Here is a finite-injury priority construction proving it. Effectively enumerate all Turing functionals . Arrange the requirements in the priority orderEquality would require the Turing functional to be total and give the correct bit at every input; one disagreement or one undefined input defeats it.
Start with and enumerate elements without ever removing them. A strategy has a private witness, a flag recording whether it has acted, and a restraint on its oracle. Every new witness is larger than every previously assigned witness and every current higher-priority restraint. Retired witnesses are never reused. The only possible enumeration of a witness is by its owner, so an unacted witness remains outside its target set.
The strategy for chooses a witness and waits for a stage at which the bounded simulation givesOn seeing this, put into , declare the strategy acted, and impose restraint on , where is the oracle use: one more than the largest queried number, or zero if there were no queries. Initialize every lower-priority strategy, discarding its current witness, acted flag and restraint. An acted strategy does nothing further until initialized. The strategy for is identical with interchanged. Waiting specifically for zero is enough: if the eventual output is nonzero while the witness stays out, it already disagrees with the target indicator function.
For a completely effective schedule, at stage visit the first strategies in priority order. Assign an unassigned witness when visited. Simulate each unacted strategy's computation for at most steps with the current finite oracle. If some strategy can act, perform the first such action and end the stage; otherwise end after all visits. All steps are finite and algorithmic, so the limiting are computably enumerable sets.
Every lower-priority enumeration respects higher-priority restraints. When its witness was chosen it lay above these restraints. Any subsequent action of a higher-priority strategy would have initialized it, so its current witness remains safe to enumerate. The initialization of all lower strategies also removes their obsolete restraints before they can obstruct a legitimate higher-priority action.
We verify finite injury by mathematical induction on priority. The first strategy is never injured and acts at most once. If all predecessors of a strategy act finitely often, there is a last stage when a higher-priority action initializes it. It is subsequently visited, chooses its permanent witness, and acts at most once. Thus it too acts finitely often and all its lower-priority strategies suffer only finitely many injuries. The scheduling cannot starve a fixed strategy: after the finitely many higher-priority actions, all sufficiently large stages visit it.
Consider the final uninjured with witness . If it acts, then permanently, and every later lower-priority enumeration into respects its restraint. No later higher-priority action occurs. The preserved computation is thereforeIf it never acts, . Were , the final computation on would halt with zero and have finite oracle use. The finitely many oracle bits it queries eventually stabilize, and a sufficiently late bounded stage simulation would see exactly this zero computation. The strategy would then act, a contradiction. Hence holds in this case too. The same reasoning proves every .
All possible Turing reductions in both directions are excluded. This proves the Friedberg–Muchnik theorem; in particular both constructed Turing degrees are noncomputable, since a computable set is Turing reducible to every oracle.
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 120 6 Solution Created 2026-10-03 Updated 2026-10-06
Represent a nonnegative integer by the Church numeralA closed lambda term represents a partial computable function if, on inputs in its domain, reduces to the Church numeral of the value, and on other inputs it produces no Church numeral. We use untyped lambda calculus and normal-order beta reduction.
First every primitive recursive function has such a representation on all inputs. The zero function is represented by a constant , the projection functions by , and the successor function byFor function composition in recursion theory, substitute the represented inner functions into the represented outer function:These constituent functions are total, so there is no undefined argument to be discarded.
For primitive recursion, use Church Booleans and Church pairs:If represent the total functions defining a recursion, putandAfter iterations the Church pair contains the counter and the recursively computed value at , by mathematical induction. Thus this lambda definition of primitive recursion by pair iteration represents the recursion. A structural induction for primitive recursive functions now represents every primitive recursive function.
To pass to arbitrary partial computable functions, use the Kleene normal form theorem in the following form: for every , there are total primitive recursive functions such thatwith undefined precisely when no such exists. The predicate checks codes of valid finite halting histories for the chosen program; extracts their common output. This expresses unbounded minimization of a total predicate, so no earlier undefined test can interfere with the search.
Let be the represented total functions. The Church numeral zero test and a fixed-point combinator areDefine the search lambda termAll displayed abbreviations expand to finite closed lambda terms; stands for the fixed finite tuple of input variables. Because , normal-order beta reduction tests . At the first successful test the Church Boolean selects , which reduces to the correct Church numeral. The unused recursive branch is discarded.
If no test succeeds, every finite search step returns to another head search, never exposing a numeral. The term has no head normal form and hence cannot be beta equivalent to a Church numeral. This last point is why the output operation occurs inside the successful branch: simply applying a possibly argument-discarding outer function to a divergent search would not justify undefinedness. Therefore every computable function is representable, including partial computable functions with their correct undefined inputs:
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 109 2 ii Solution Created 2026-10-03 Updated 2026-10-05
A bounded-size transversal kernel gives a finite intersection witness for cross-intersecting families, even when the two set families are infinite. We first prove the kernel statement: for any set family whose members have size at most , and any integer , there is a finite subset withsuch that every set of size at most is a hitting set for if and only if it is a hitting set for .
Use mathematical induction on . If is empty, take . For and nonempty , choose any one member: the only possible is empty and is a hitting set for neither family. For the induction step, choose . For each apply the inductive statement towith parameter , obtaining . Put . Its size is at most . If is a hitting set for , choose . Every member of avoids , so is a hitting set for and hence for . Members of containing already meet . Thus is a hitting set for all of . The reverse implication follows from inclusion. If , no is a hitting set for either family, so the implication remains valid. This finite branching proof never assumes is finite.
Apply the kernel statement with and define . For each , the cross-intersecting family condition ensures that meets every member of , since these members lie inside . As , it therefore meets every . We obtainIn particular, a positive-integer-valued choice valid whether or not isHere the constant term of the sum is , including when . If either set family is empty, suffices. If both are nonempty, the cross-intersecting family condition rules out or .
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 109 3 i Solution Created 2026-10-03 Updated 2026-10-05
Harris' inequality states that, for a product measure on with independent Bernoulli random variables of parameters , increasing events satisfyIn particular, the uniform probability measure on the Boolean lattice gives . We give a direct mathematical induction proof, so no stronger correlation theorem is assumed.
Prove more generally that for real coordinatewise increasing functions on the finite cube. For both are constant and equality holds. For the inductive step let , and let be the restrictions obtained by setting the last coordinate equal to . Write , , using the product measure on the other coordinates. Monotonicity gives , . By the inductive hypothesis and conditional expectation,The nonnegative correction term also handles and . Taking indicator functions , proves Harris' inequality.
For later use, an increasing event and a decreasing event have negative correlation of increasing and decreasing events. The complement is an increasing event, so
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 130 2 i Solution Created 2026-10-03 Updated 2026-10-05
We prove the Hales-Jewett theorem by mathematical induction on the alphabet size. A combinatorial line has a nonempty active coordinate set, with one common letter in all those coordinates. More generally, a -dimensional combinatorial subspace has disjoint nonempty active coordinate sets, each with an independently variable letter.
First prove the alphabet insensitivity lemma, rather than assume it. Fix distinct letters , colors, and dimension . Partition the coordinates into consecutive blocks of lengths , chosen from left to right. Put and chooseConstruct the variable blocks from right to left. When working on block , the later blocks have already become -parameter words, while all earlier coordinates remain unrestricted. For each , take the color vector of the word having in block , indexed by every earlier word and every assignment to the later parameters. There are entries and hence at most different vectors. The pigeonhole principle gives with identical vectors. Fix the first positions of this block to , fix its last positions to , and make the intervening positions a new variable block. Substituting or there gives exactly the two equal color vectors.
This equality holds for every earlier word and every later parameter assignment. Restricting the earlier coordinates in subsequent steps therefore preserves it. Likewise, the insensitivity already proved in a later block survives every restriction of earlier coordinates. At the end, we obtain a -dimensional combinatorial subspace whose induced finite coloring is unchanged whenever any parameter switches between and , with all other parameters fixed. Multiple switches preserve the color by successive single switches. This is the alphabet insensitivity lemma in full.
For alphabet size , one coordinate is already a monochromatic combinatorial line. Suppose the Hales-Jewett theorem has been proved for alphabet size , and let . Apply the proved alphabet insensitivity lemma with letters to get a -dimensional combinatorial subspace in . Restrict its parameter words to . The induction hypothesis gives a monochromatic combinatorial line in these parameters. The union of its active parameter blocks is nonempty, so its image is a combinatorial line in the original coordinates. Its additional point with active letter has the same color as the point with active letter , by insensitivity. Therefore all points have one color, provingThe construction supplies a finite recursive bound; optimal bounds are not needed.
Past exam of the mathematics course of the University of Cambridge 2017 iii Paper 135 1 2 Solution 2026-10-05
Write for the recursively repetition-free labelled trees. Each rooted tree is finite because the inductive definition forms it from an already constructed finite list of finite child rooted trees. Its label list is obtained by visiting the root first, then each child subtree in its prescribed order, using a depth-first traversal of a tree. This list can have repetitions. In particular, different branches may use the same label; the children are required to be distinct rooted trees, not to have distinct root labels.
For any finite label pool , prove by mathematical induction on that is finite. For it is empty. For each root , the children form a finite repetition-free sequence from , which is finite by mathematical induction. There are therefore finitely many child lists for that root, and the finite union over is finite. More explicitly, if is the number of rooted trees on a pool of labels, thenThere is no countable choice in this finite mathematical induction.
Now suppose were an injective enumeration of a countably infinite subset of . Their canonical traversal lists give an explicit enumeration of all labels used. If infinitely many different labels occur, the least-first-occurrence procedure gives a countably infinite subset of , a contradiction. Otherwise all labels belong to one finite set . Every then belongs to : recursively its root lies in and its child rooted trees use only with that root removed. But is finite by the preceding mathematical induction, again a contradiction. Finally the single-vertex rooted tree labelled is injective, so is infinite. Hence recursively repetition-free labelled trees preserve Dedekind-finiteness: