Past exam of the mathematics course of the University of Cambridge 2010 ia Paper 4 6E Solution Created 2026-09-24 Updated 2026-10-14
The Fermat little theorem states that if is a prime number, then for every integer . Equivalently, for , .
To prove it when , multiplication by permutes the nonzero residues . Indeed, implies , and the Euclid lemma implies in this range. Multiplying all these residues givesNone of the factors of is divisible by , so the factorial has a modular inverse. Cancelling it proves , hence . When , the latter identity has both sides zero, completing the proof.
For an odd prime number , the numbers are coprime. The Fermat little theorem gives , and consequentlyThese exponents are distinct, so infinitely many are obtained.
Write the repdigit with copies of asIf , choose to be any positive multiple of . Then has a modular inverse modulo , so . Division by cannot be used modulo ; instead gives , so for every . If , every is divisible by . ThusThe separate treatment of accounts for the prime factor of the geometric-sum denominator.
Past exam of the mathematics course of the University of Cambridge 2011 ia Paper 4 6E b Solution Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2012 ia Paper 4 6D Solution Created 2026-09-24 Updated 2026-10-07
Fermat's little theorem says that for a prime and , ; equivalently for every integer . The Wilson theorem says for a prime (and, conversely, this congruence characterizes primes among integers greater than one).
For , is a square root of minus one modulo a prime. If is odd and , Fermat's little theorem givesso is even and . Conversely, put . Pairing with in the factorial gives . For , is even, so the Wilson theorem yields . Thusand in the latter case supplies a solution.
For the multiplicative order assertion, divide by : , . Since and , it follows that . Minimality of the positive order excludes , hence andIn particular by Fermat's little theorem. Negative , if included, are handled by the same division using the modular inverse of .
A Fermat number in the paper has . If a prime divides , it is odd and . Squaring gives , so the order divides . It does not divide , since modulo an odd prime. Every divisor of is a power of two, so the only possibility isIf two different Fermat numbers shared a prime factor, the same element modulo that prime would have two different orders. This is impossible, proving pairwise coprimality. Also , so for every such prime is modulo . No prime modulo can occur.
A prime modulo need not occur: take . It is prime, , and . Since the order divides , the first congruence excludes every divisor of and the second excludes ; hence the order is . This is not a power of two, so is not a prime divisor of a Fermat number. The index restriction matters: the conventional extra number is outside the paper's positive- family.
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 31 1 v Solution Created 2026-10-03 Updated 2026-10-07
For , the correlation function of a point process associated with the eigenvalues isThe factorial factor counts ordered selections of distinct eigenvalues, so this is a factorial moment density, rather than the ordinary probability density of particular labels. Equivalently, for a nonnegative measurable test function ,Repeated projection kernel determinant integration, with , gives a factor on integrating an -by- kernel determinant down to size . Together with the normalizing in , the factors cancel:In particular and . Set and for . The eigenvalue configuration is thus a determinantal point process with a rank- finite-rank projection kernel.
Past exam of the mathematics course of the University of Cambridge 2014 ia Paper 4 2E Solution Created 2026-09-24 Updated 2026-10-06
For integers , define the binomial coefficient byHere the factorial is the product of the positive integers up to . This also counts the -element subsets of an -element set: an ordered choice has possibilities, and each subset is ordered in ways.
The required hockey-stick identity follows by mathematical induction on , with fixed. For , both sides are . If it holds at , adding the next binomial coefficient and using Pascal's identity givesTherefore for every ,
Past exam of the mathematics course of the University of Cambridge 2015 ia Paper 4 1E b Solution Created 2026-09-24 Updated 2026-10-06
Write the composite number as , with . If , both and occur as distinct factors of the factorial , so their product divides that factorial.
Past exam of the mathematics course of the University of Cambridge 2016 ia Paper 4 8E a Solution Created 2026-09-24 Updated 2026-10-06
First establish the binomial theorem needed throughout this question. For integers , define the binomial coefficient to be the number of -element subsets of an -element set. Counting ordered selections and then forgetting their order giveswith the factorial convention . In the product of factors , choose from exactly factors and from the others. Each choice contributes , and there are choices. The distributive law therefore provesfor every complex number , including by the empty-product convention.
To evaluate the even-indexed sum, use the even part of a polynomial: averaging the binomial theorem at and cancels the odd powers. For ,The two complex numbers satisfy . Their th powers are both , since . Thus the sum is
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 4 5D b Solution Created 2026-09-24 Updated 2026-10-05
Suppose . Then is a unit modulo n for modulus , and Fermat's little theorem impliesSince is an odd prime number, and are distinct residue classes. Therefore is even, and .
Conversely, put . Pair each integer with in the factorial. Wilson theorem yieldsWhen , is even, so satisfies . This proves the first supplementary law for quadratic reciprocity without assuming a primitive root. HenceThe two solutions are and modulo : their difference is nonzero, and factoring shows that a degree-two polynomial over the field of residues modulo has no further roots.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 4 5D c Solution Created 2026-09-24 Updated 2026-10-05
Split the factorial at , using :By Wilson theorem, this is . Therefore . If the prime number is odd, then is even, so andFor , the signs and are identical modulo , and the two possibilities also give the same result. The empty product convention includes the endpoint cases. This is the complementary factorial congruence.
Past exam of the mathematics course of the University of Cambridge 2018 iii Paper 304 1 Solution Created 2026-10-03 Updated 2026-10-14
Assume and take . The free Gaussian integral gives , and the normalized free Gaussian measure has covariance . Expanding only the interaction exponential gives the asymptotic expansionIn this zero-dimensional scalar field theory, the path integral has become an ordinary integral, but its combinatorics are precisely those of sextic scalar field theory.
The free generating functional is . Differentiating it proves Wick theorem: odd moments vanish, while each even moment is the sum over pairings of its factors. Each Wick contraction contributes , soThus the Feynman rules are a quantum field theory propagator for each internal line and a factor for each six-valent interaction vertex. The factorials and remove vertex and half-edge labels; the remaining weight is , where is the Feynman-diagram symmetry factor, the order of the automorphism group of the resulting diagram, including its half-edge symmetries. A tadpole diagram has an additional interchange symmetry of the two ends of its loop.
There is one empty Vacuum Feynman diagram, contributing . At one interaction vertex, the six half-edges form three loops. Its Feynman-diagram symmetry factor is , so its contribution is .
At two interaction vertices let count the lines joining them. Each interaction vertex has self-loops, so can only be . These four possibilities exhaust all Vacuum Feynman diagrams at this order. Their Feynman-diagram symmetry factors areHere the leading exchanges the two interaction vertices, permutes the joining lines, and the remaining factors permute and reverse the self-loops. The graph is disconnected and must be included in ; only a connected generating functional would discard it.
All Vacuum Feynman diagrams with at most two interaction vertices
. The empty diagram, the one-interaction vertex diagram, and the four two-interaction vertex diagrams, with their Feynman-diagram symmetry factors. Details.This is an asymptotic expansion, rather than a convergent perturbation series: the coefficient of contains and grows too rapidly for a nonzero radius of convergence. For any fixed truncation order, the Taylor expansion remainder bound for on , followed by the finite Gaussian moment integral, proves the stated remainder estimate. For negative real the original integral diverges.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 4 40C d Solution Created 2026-09-24 Updated 2026-09-25
The displayed matrix is an upper bidiagonal matrix. For , the right eigenvector equation successively givesWe may therefore take the unit right eigenvector to be .
For a left eigenvector, givesSince ,Choosing the initial scale producesAfter normalization,The eigenvalue sensitivity is thereforewhere is the factorial. Hence
Permanent (mathematics) 2026-10-14
The permanent of a matrix adds the products obtained by choosing one entry in each row and one in each column. For an matrix with entries in the real numbers or complex numbers,Here each permutation chooses column in row , and the symmetric group lists every such bijection. The formula resembles the Leibniz formula for determinants, but omits the sign of a permutation. For a two-by-two matrix,The absence of alternating signs makes the permanent of a matrix particularly useful for counting allowed assignments.
For a zero-one matrix, let rows represent people, columns represent jobs, and mean that person can do job . This is the biadjacency matrix of a bipartite graph. A product in the permanent is one exactly when all the selected assignments are allowed; otherwise it is zero. Each surviving permutation assigns every person a different job, which is a perfect matching. Thus the permanent counts perfect matchings. This interpretation and the definition are given in Yufei Zhao, Probabilistic Methods in Combinatorics, §10.2, pp. 178–179.
For a fully enumerated example, takeAmong the six permutations of three columns, exactly three give nonzero products: , and . These tuples list the chosen column in each successive row. Each product is one, so . Their permutation signs are , giving . The diagram displays all three allowed assignments.
Three allowed one-to-one assignments contribute positively to the permanent, while their permutation signs give a determinant of minus one
. Details. A zero determinant need not mean that no assignment exists. The two-by-two all-ones matrix has permanent and determinant : its two assignments cancel in the determinant. The nonzero determinant criterion for a perfect matching is sufficient for existence, but the converse fails for a fixed zero-one matrix.
For nonnegative entries, the permanent instead sums assignment weights, with each assignment weighted by the product of its selected entries. It is then a total weight rather than necessarily an integer count. With arbitrary entries in the real numbers or complex numbers, even the permanent can have cancellation; the counting interpretation specifically uses zero-one entries. The permanent as probability of distinct independent choices gives another useful nonnegative interpretation.
There are terms in the defining sum, linking direct evaluation to the factorial. For the all-ones matrix, every term is one and the permanent is exactly ; the identity matrix has permanent one. Finding one allowed assignment and counting all allowed assignments are different questions. Their relationship to computational complexity theory was studied in L. G. Valiant, The complexity of computing the permanent, Theoretical Computer Science 8(2), 189–201, 1979. The elementary sum is useful for small examples, while the existing dense permanent approximation describes a more specialized way of estimating large counts.
Permutation Created 2026-09-24 Updated 2026-10-13
A permutation of a set is a bijection : every element has exactly one image and every element appears exactly once as an image. For a finite set, a permutation can also be recorded as an ordering of all its elements, once a reference order has been chosen. For three distinct letters , the six orderings areThere are three choices for the first letter, two unused letters for the second, and one for the third. Every path in the tree gives one complete ordering, and every ordering has one such path, so the rule of product gives , a factorial.
The full choice tree for the six permutations of three distinct letters: three first choices, two second choices, and one third choice
. Details. Ordering versus mapping. Label the reference positions . An ordering tuple of these labels describes the function ; conversely, reading the images recovers the ordering. For example,means , , , . Its ordered image list is , whereas its cycle decomposition of a permutation is : starting at , follow its successive images back to . Parentheses in the latter expression encode arrows around a permutation cycle, rather than an image list in reference order. [ref]
https://math.mit.edu/~fgotti/docs/Courses/C.%20Combinatorial%20Analysis/11.%20Permutations%20I/Permutations%20I.pdf. Felix Gotti, MIT 18.211, lecture 11, pages 1–2: arrangements, bijections and cycles
The two viewpoints answer different useful questions about the same object. An ordering tells us which object occupies each position; a bijection tells us where each label is sent and allows successive rearrangements through function composition. All permutations of labels form the symmetric group, whose subgroups are permutation groups. The counting viewpoint supplies possibilities, a factorial; the mapping viewpoint reveals how rearrangements combine.
Composition convention. Apply the rightmost permutation first:For the displayed and the transposition , direct evaluation givesFor instance, , but . Thus function composition of permutations need not be commutative; the omitted labels in these permutation cycles are fixed points.
Size of a type class 2026-10-14
Write . Arranging copies of each symbol gives the multinomial coefficientThe division by the factorials removes permutations among identical copies. In the balanced four-symbol example, . For binary symbols this becomes the binomial coefficient ; for three symbols with counts , the class contains strings.


