Odd moment of a prime cosine sum 2026-10-06
For odd , expanding gives products with different numbers of prime factors on the two sides. Unique prime factorization rules out every diagonal equality. The integral over is therefore .
Pairwise coprimality 2026-10-14
A list of integers , with , has pairwise coprimality when every two entries in distinct positions are coprime. This implies joint coprimality. For positive integers, it means no prime factor occurs in two different entries. For example, satisfy this condition.
Past exam of the mathematics course of the University of Cambridge 2001 ia Paper 4 6E Solution Created 2026-09-24 Updated 2026-10-14
For finite sets , the inclusion-exclusion principle statesTo prove it, count the contribution of an element lying in exactly of the sets. Its total coefficient isby the binomial theorem. An element in none contributes zero. Summing these elementwise counts proves the formula. Applying the same argument to indicator functions and taking expectations proves the corresponding probability formula.
Factor . An integer is coprime to this product precisely when none of its three prime factors divides it. Inclusion-exclusion applied to the multiples of those prime numbers among gives Euler's totient functionFor the survey, let be the three detestation events and use proportions as probabilities. The union is the reported total union with the only- group removed, so . The two-set inclusion-exclusion principle gives . Removing the all-three group leavesThe required proportion is 4%. The separately reported total proportion is consistent with, but unnecessary for, this calculation.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 25 4 Solution Created 2026-10-03 Updated 2026-10-14
The Selberg upper-bound sieve replaces the indicator function of a sifted set by the square of a divisor sum. If the real Selberg sieve weights satisfy , thenWhen has no forbidden prime factors, the divisor sum is exactly one; otherwise its square is still nonnegative. Taking the weights to vanish for controls the error in summing this majorant. The main term is a positive quadratic form that can be diagonalized and minimized explicitly. This optimization, together with a bound for the remainder, is the central idea of the Selberg sieve.
For twin primes, take and let be the number of its roots modulo a squarefree integer . The Chinese remainder theorem makes a multiplicative arithmetic function, with and for odd primes. Thus the polynomial root density in a sieve is , andSumming the majorant giveswhere , with all indices squarefree. Here controls the error.
We carry out the Selberg sieve diagonalization. PutFor squarefree integers , multiplicativity givesThe identity behind the first equality is . Möbius inversion gives . The Cauchy-Schwarz inequality therefore impliesDefine . Equality is attained at , giving . Inverting again, the optimizing Selberg sieve weights areIn particular . Since ,The last inequality holds separately at , , and . Together with , this crude bound already makes the remainder , because .
We also need a lower bound for ; we prove it rather than presuppose a sieve asymptotic. For odd squarefree integers ,where counts distinct prime factors. Put and . The total weight of odd pairs is . Exclude pairs for which has a square prime factor, has a square prime factor, or have a common prime factor. For each of these three categories the total weight is at most : for example, the weighted count of odd multiples of is , and the common-factor category uses for each variable. Moreover,Hence the remaining odd coprime squarefree pairs have weight at least . Their products are squarefree, and counts all ordered coprime factorizations of . This proves the elementary lower bound for the twin-prime sieve denominator:
If and both are primes, survives the sieve. The at most smaller values are the only exceptions. Thus, with and , the twin-prime upper bound from a quadratic sieve becomesFinally partial summation givesThe integral over is bounded by a constant times . The nonnegative partial sums are therefore bounded and increasing. Thus the reciprocal series over the smaller members of twin-prime pairs converges, a form of Brun's theorem. The upper bound does not assert that infinitely many twin primes exist.
Past exam of the mathematics course of the University of Cambridge 2004 ia Paper 4 6E Solution Created 2026-09-24 Updated 2026-10-14
For a prime number and an integer coprime to , multiplication by permutes the nonzero residue classes modulo . Indeed, implies , and none of the products is zero. Taking the product over the classes givesThe factorial is coprime to and can be cancelled, proving Fermat little theorem: .
Now and is coprime to , so it is coprime to . Since , the proved theorem givesThus the two specified integer congruences modulo are equivalent. In this particular step the additional hypothesis is not needed; it will hold for the squarefree factorization used next.
If is a squarefree integer, its distinct prime factors are pairwise coprime. Consequently divides exactly when every prime factor does. Applying the preceding equivalence with provesFinally retain this squarefree hypothesis. If divides , write . Fermat little theorem gives for every prime factor. Their pairwise coprimality then gives . For composite this is the sufficient direction of the Korselt criterion for a Carmichael number; primality is not excluded by the requested implication.
Past exam of the mathematics course of the University of Cambridge 2004 ia Paper 4 8E Solution Created 2026-09-24 Updated 2026-10-14
For each , the product is precisely outside every , and is otherwise. It is therefore the indicator function of . Expanding the finite product givesMultiply by and sum over the finite set . The product of indicator functions is the indicator function of the corresponding intersection, soHere the empty intersection is , and the empty product is . Grouping the subsets by their cardinality gives the requested weighted inclusion-exclusion principle, with no contribution for .
Let be the finite set of distinct prime factors of , and work in . For put , including . Then , and an integer belongs to every for exactly when it is a multiple of . Thus the intersection has size . The complement consists precisely of the residues coprime to . Using weight givesThis proves the product formula for the Euler totient function without requiring to be squarefree.
For the weight , the sum over the multiples of any divisor in this interval isThe weighted inclusion-exclusion principle therefore givesSince , is nonempty and the last sum is . The first factors as before, givingThis sum of reduced residues also follows by pairing the bijection ; at its sole fixed residue causes no problem because the sum of both copies still equals .
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 28 5 Solution Created 2026-10-03 Updated 2026-10-14
A suitable large sieve statement is the following. If are separated modulo one by at least and is supported on consecutive integers, thenThe sharper classical constant also suffices, but is unnecessary for the requested bound. This is the exponential-sum large sieve.
Put , , and . By the orthogonality of roots of unity,At most of these residue counts are nonzero. The Cauchy-Schwarz inequality gives , and the frequency contributes exactly . Thus, if ,If for some prime, is empty and the result is immediate.
All fractions , , , are distinct reduced fractions. Their circular spacing is at least , because two distinct fractions of these denominators differ modulo one by at least . Apply the large sieve with and , and sum the preceding lower bounds:For and a positive sieve denominator, division provesWhen the denominator is zero this asserts no restriction; that degenerate case is interpreted as a vacuous bound.
For the least-nonresidue application, first establish the positive density of power-smooth integers. Fix , with an integer , and let tend to infinity. Choose ordered primes, with repetitions allowed, in the intervalTheir product satisfies . Every number has , so is -smooth. By partial summation of the Prime number theorem, or the Mertens theorem for reciprocal primes,The number of ordered representations is at leastbecause for .
This representation count must not be confused with a count of distinct integers. A number at most has at most prime factors in that interval, counted with multiplicity. There are therefore only a bounded number, depending on , of ordered -tuples which can occur as divisors of it; the cofactor is then fixed. Dividing by this bounded multiplicity provesfor a fixed and all sufficiently large .
Now work on a dyadic prime interval and let be the primes there with . Take and , so . Let be the -smooth integers at most . The density lemma gives for an absolute .
For each , every prime factor of a member of is at most and is smaller than . Hence it is a nonzero quadratic residue modulo . Multiplicativity of the Legendre symbol makes every member of a nonzero quadratic residue modulo . It therefore avoids all quadratic-nonresidue classes. In the sieve inequality set at exceptional primes and zero at every other prime up to . For odd , , soThus each dyadic interval has at most exceptional primes. The finitely many small intervals can be absorbed into this absolute bound. Summing the intervals up to proves the large-sieve logarithmic exceptional-prime bound for least quadratic nonresidues:The least nonresidue is normally defined for odd primes; any convention at the prime two changes the count by at most one.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 28 6 Solution Created 2026-10-03 Updated 2026-10-14
Let count pairs both prime with . The Selberg sieve replaces primality by the necessary condition that the polynomial have no small prime divisor. Its strength is a nonnegative quadratic majorant with optimizable divisor weights; its limitation is that a sifted integer need not be prime.
For a prime , let count the forbidden residues of modulo . We have , since the two roots coincide modulo two, and for every odd prime, where the roots are zero and . The Chinese remainder theorem makes multiplicative on squarefree integers. With ,These local densities constitute the sieve distribution for the twin-prime problem. Since , it is a dimension-two sieve, which is why the expected upper bound has two logarithms in the denominator.
Let and choose real Selberg sieve weights supported on squarefree , with . If , the only supported divisor of is one. HenceExpanding and using the distribution of the polynomial roots givesHere denotes the least common multiple. The divisor-square support reaches , although each individual weight is supported only to ; keeping these two levels distinct is essential for estimating the remainder.
The Selberg sieve diagonalization solves the main-term minimization exactly. On squarefree integers putMultiplicativity givesAlso, Möbius inversion gives . Therefore the Cauchy-Schwarz inequality proveswith equality at . Inverting the divisor sums gives the optimizing weightsIn particular and .
These weights have , which supplies a simple rigorous remainder estimate. Indeed, multiply the inner sum by . The terms are for distinct squarefree integers with and , hence form a subset of the sum defining . Since and ,Thus
For this sieve and for odd primes. Here is a direct proof that , sufficient for the upper bound. PutThe Mertens theorem for reciprocal primes implies , by taking logarithms and using the convergence of . Give each divisor probability . Its expected logarithm isby the Mertens first theorem. With this is at most for large . The Markov inequality shows that at least two thirds of the total product weight has . These terms occur in , so . Conversely , proving the claim without treating an untruncated Euler product as a truncated divisor sum.
Choose, for example, . Any twin-prime pair with smaller member greater than survives this sieve; pairs with smaller member at most contribute at most . ConsequentlyThe chosen level is deliberately enough to prove the correct logarithmic order; sharper level and remainder analyses improve the numerical upper-bound constant.
The local correction factor also explains the conjectured main-term constant. Relative to two independent primality conditions, the singular series isThe twin-prime constant is positive and convergent because its logarithm has an absolutely convergent tail. The factor two at records that only one parity is allowed, while each odd-prime factor records the two distinct forbidden residues. The Hardy–Littlewood twin-prime asymptotic conjecture predictsThis is a conjecture, not a consequence of the upper-bound calculation.
The parity problem in sieve theory is the obstruction to reversing the argument. The nonnegative square majorizes all survivors, including composites with sufficiently large prime factors; small-divisor information does not isolate the desired prime-factor parity or force both factors to be prime. Therefore the Selberg sieve establishes the correct upper-bound scale and the arithmetic local factors, but by itself does not prove a positive lower bound for twin primes, their infinitude, or the conjectured asymptotic.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 4 1E Solution Created 2026-09-24 Updated 2026-10-14
A prime number is an integer whose only positive divisors are and . Every integer greater than one has a prime factorization; in particular it has a prime divisor.
To prove infinitely many primes congruent to minus one modulo six, suppose a finite list contains all such primes, and put ; the empty product is one. The integer is coprime to , so each prime factor is congruent to or modulo . If all its prime factors, counted with multiplicity, were congruent to , their product would also be congruent to . But . Hence some prime divisor satisfies . None of the listed primes divides , since . This contradicts completeness of the list.
For infinitely many primes congruent to one modulo six, suppose instead that lists every prime congruent to modulo , and useIt is odd. Since each listed prime is coprime to , , so and does not divide it. Any prime divisor is therefore greater than and satisfies the modular congruenceThe allowed quadratic-congruence result gives . Yet , and , so no listed prime divides . Again there is a new prime in the required residue class. Thus both residue classes and contain infinitely many primes.
Past exam of the mathematics course of the University of Cambridge 2006 ia Paper 4 7E Solution Created 2026-09-24 Updated 2026-10-14
Fermat's little theorem states that, for a prime number and any integer ,If , both sides vanish modulo . Otherwise multiplication by permutes the nonzero residue classes modulo : it is injective because implies by cancellation. Taking the products of these residues givesThe factorial is coprime to , so cancellation proves and hence the stated version. This proves Fermat's little theorem in both cases.
Let be a Carmichael number. If a prime square divided , choose . Since is an odd composite integer, , and . This contradicts the required modular congruence modulo . Therefore every Carmichael number is squarefree.
For each prime divisor of , choose the allowed primitive root modulo . The Carmichael identity applied to the positive integer gives , and cancellation gives . By its defining order property,Conversely, suppose a composite integer is squarefree and has this divisibility for every prime divisor. For an arbitrary integer , modulo a prime divisor there are two cases. If , then . Otherwise Fermat's little theorem and give , so again . Since the prime divisors are distinct and pairwise coprime, their product divides . This is the proof of Korselt criterion:
If for distinct odd primes with , the condition at would require . Reducing modulo gives , so . But , which is impossible. Thus a product of two distinct odd primes is not Carmichael.
For , squarefreeness is automatic. Since ,Apply the analogous reductions at and to obtainFinally , with distinct odd prime factors, andAll three divisibilities hold, so 1729 is a Carmichael number.
Past exam of the mathematics course of the University of Cambridge 2006 ii Paper 3 11H Solution Created 2026-09-24 Updated 2026-10-14
The Prime number theorem states that , where counts primes not exceeding . Dirichlet theorem on primes in arithmetic progressions states that if , then the progression contains infinitely many primes.
If for an odd prime , the multiplicative order of modulo is four. Lagrange's theorem therefore gives . Conversely, Wilson's theorem gives . Pairing the factors and yieldsFor , the sign is positive, so the factorial supplies a square root of . Thus is a quadratic residue exactly when .
Write . The odd integer is modulo . If all of its prime factors were modulo , their product, with multiplicities, would be modulo , so at least one factor is modulo . Every prime factor of is odd and satisfies ; the criterion just proved gives . Neither integer is divisible by any , since their residues modulo are respectively and . Starting with any finite list thus produces a new prime in each residue class. Both classes contain infinitely many primes, independently of the general Dirichlet theorem on primes in arithmetic progressions.