For a product of finitely many admissible linear forms, first omit a fixed finite set of locally obstructing primes. Apply the Buchstab identity at a large fixed , and bound each removed term by the Selberg upper-bound sieve. The convergent tail leaves a positive proportion with no prime divisor in . Their distinct prime divisors below are finite in number, while those above number at most , producing infinitely many almost-prime values.
For the polynomial , take and at odd primes. On odd squarefree integers, the summand is at least . Put and . The weight of odd pairs is . The pairs for which is not squarefree, is not squarefree, or each have weight at most . Indeed, the weighted count of multiples of an odd is . Moreover,Hence the odd coprime squarefree pairs have weight at least . Their products are squarefree, and counts all ordered coprime factorizations of . This proves the displayed lower bound needed for the Selberg upper-bound sieve.
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 2003 iii Paper 22 4 Solution Created 2026-10-03 Updated 2026-10-14
The Selberg upper-bound sieve replaces an exact but long inclusion-exclusion expansion by a short nonnegative square, and then minimizes its main term. For an interval , the count of multiples of every integer isCrucially the remainder bound is independent of .
Let and take real weights , supported on squarefree , with . If , the sum of these weights over divisors of is just one; for all other its square is nonnegative. ThusExpanding and counting common multiples givesThis separates the local density from a uniform interval error. The weights will be chosen to minimize .
The Euler totient function identity yields the Selberg sieve diagonalizationOnly squarefree occur. Inverting this finite triangular sum by Möbius inversion givesWrite . The Cauchy-Schwarz inequality gives , with equality at . The inverse formula then produces the optimal Selberg sieve weightsThe constraints are satisfied, since the diagonal transformation is invertible and .
We need the leading constant, not just . Here is an elementary proof of the Selberg sieve denominator asymptotic. For define the multiplicative arithmetic function byChecking the prime-local factors shows . Also : the local factors for absolute values differ from one by , and their logarithmic first moments sum . The signed local sums are all one, so absolute convergence gives . Using the harmonic number estimate,For the last equality, is bounded and is bounded too.
The optimal Selberg weights have modulus at most one. To prove this here, for squarefree use . The product is the sum of over , , , with squarefree. All are distinct squarefree integers at most , and so these are a subset of the terms of . The displayed weight formula now gives . ConsequentlyEvery prime in the interval exceeding survives the sieve; at most smaller primes must be restored. Choose . Thenand the uniform interval bound from optimal Selberg weights follows:All constants are independent of . Given , make the absolute error in the coefficient smaller than by choosing large enough. Uniformly for every and ,
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 28 4 Solution Created 2026-10-03 Updated 2026-10-14
The Selberg upper-bound sieve replaces a difficult coprimality indicator by a nonnegative square whose coefficients can be optimized. Let , and suppose a finite sequence has divisibility countswhere is multiplicative on squarefree integers and . Choose real Selberg sieve weights supported on with . If an entry has no prime factor in , its only weighted divisor is , so its indicator is bounded above by the square of the divisor sum. Summing giveswhere . This is an upper bound regardless of the signs of the weights.
Here is the optimization. On the permitted squarefree integers putThe identitycan be checked one prime at a time: a prime in both and gives the factor . ThusFinite Möbius inversion gives , and in particular the condition becomes . The Cauchy-Schwarz inequality now yieldsEquality is attained by . Inverting again gives the explicit optimizing weightsThey satisfy . To see this, multiply out . The numerator becomes the sum of over distinct permitted integers with and , a subset of the terms in . We therefore have a main term and a controllable remainder. This proves the basic Selberg sieve diagonalization and the useful bound on the weights, rather than merely asserting an optimized density.
Apply it to the polynomial for . If is the number of roots of modulo squarefree , the Chinese remainder theorem givesUse , , and sieve the indices for which has no prime factor at most . The local weights areWe claim . The following truncated-product argument supplies the necessary lower bound. Put , and consider all squarefree integers on the primes at most , with total weightGive such an integer probability . Prime inclusion is independent with probability , soby the Mertens first theorem, absorbing the prime separately. For sufficiently large , this is at most . The Markov inequality shows that at least half of lies on , all of which are terms in .
Moreover, partial summation applied to the Mertens first theorem givesIndeed it is , and the contribution of has a finite limiting constant with tail . Expanding the logarithm of now givesThe error is bounded since . Consequently , proving the claim. The exponent two reflects the two forbidden classes at almost every prime.
For the remainder use and the simple bound . HenceThe number of surviving indices is thereforeEvery pair of primes with survives, since both its prime factors exceed . The exceptional pairs with number at most . With we obtainThis is the twin-prime upper bound from a quadratic sieve. The method constructs a majorant and bounds the sifted set; it does not give a positive lower bound for twin primes.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 27 4 c Solution Created 2026-10-03 Updated 2026-10-06
Take sieve level and coefficient cutoff . Let be the finite set of odd primes at most . Give one unit of weight for each prime . For an odd squarefree integer on these primes, the sieve distribution isThe residue is coprime to every such , and for all permitted primes. Values of outside the permitted set can be chosen arbitrarily in at primes and extended multiplicatively on squarefree integers.
For the Selberg sieve normalizing sum, andHere is a direct proof of this lower bound. Restrict the Euler product to . The Mertens first theorem gives , which is at most for large . The Mertens second theorem givesThe truncated Euler-product lower bound, with , now gives .
Use the minimizing Selberg sieve weights from Question 3. Their absolute values are at most one, so the Selberg least-common-multiple weights satisfy . Parts (a) and (b) control the remainder:The first factor uses the Bombieri–Vinogradov theorem; is below for all sufficiently large . The second uses the permitted . The PDF has the exponent nine, which the TeX transcribes incorrectly. Choose to obtain .
Every twin prime pair with survives the finite sieve, while the pairs with number at most . The Selberg upper-bound sieve thus givesTherefore the twin-prime count is . The finite cutoff on the forbidden primes is essential: sieving by all odd primes would also discard the large prime values that we are trying to count.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 27 5 a Solution Created 2026-10-03 Updated 2026-10-06
In the level- convention used here, the Selberg upper-bound sieve states that a nonnegative sequence with sieve distribution satisfiesIt follows by minimizing the quadratic form with the Selberg sieve weights and using the Selberg least-common-multiple weights bound .
Sieve the interval by two and by the primes congruent to three modulo four, up to . The interval divisor counts giveThus , , and uniformly in the location of the interval. Take and .
To bound , let and form the Euler product over the forbidden primes at most . The given reciprocal-prime sum in residue class one modulo four, subtracted from the Mertens second theorem, yieldsMoreover, the Mertens first theorem bounds the logarithmic mean by for large . The truncated Euler-product lower bound gives .
The full-range summatory bound for three to the prime omega bounds the error by , which is . Every integer whose prime factors are all congruent to one modulo four survives this finite sieve. Therefore the half-dimensional interval sieve givesThe constants are independent of . Enlarging them covers the bounded range of before the asymptotic product estimates apply, so the result holds throughout .
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 150 2 b Solution 2026-10-03
Suppose the sieve distribution has the formwhere is a multiplicative arithmetic function on squarefree integers and . DefineThen the Selberg upper-bound sieve statesfor , with immaterial endpoint changes under other level conventions.
To construct the weights, putand setThen . If , the divisor sum equals one, and henceSumming against and expanding givesThe Selberg diagonalization of the positive quadratic form givesFinally, grouping the error by gives at most pairs for each squarefree ; using yields the stated remainder.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 150 2 c Solution 2026-10-03
Letand let be the product of the finitely many primes at most or dividing some nonzero difference . Sieve with the primes . For such a prime, the congruence has exactly distinct roots. By the Chinese remainder theorem, the root-counting function is multiplicative on squarefree coprime to , andThus the polynomial root density in a sieve applies with
Take and . For squarefree coprime to ,The supplied mean-value estimate, partial summation, and removal of square factors using giveThe error in the Selberg upper-bound sieve isConsequently
If every is prime and all of them exceed , then has no prime divisor with , apart from a fixed finite set of divisibility cases absorbed into the implied constant. The cases with some contribute . Therefore
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 117 1 b Solution 2026-09-28
The weighted sifting function isLet and let the real Selberg sieve weights vanish unless and . Sinceexpansion and the distribution hypothesis giveFor the optimizing Selberg weights, the main quadratic form is , whereThus the general upper bound isIf the sieve level is instead defined as the largest possible least common multiple, one supports the individual weights on ; this is the same statement after replacing by .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 117 1 e Solution 2026-09-28
Take to contain the primes at least ; the exceptional local behavior at and is then harmless. Fix a sufficiently large constant and later choosewith fixed small . The Buchstab identity givesThe first term is for a positive constant , by direct counting in the finitely many permitted residue classes modulo .
For each term in the sum, part c supplies the local factor and remainders bounded by powers of . Apply the Selberg upper-bound sieve to the remaining prime conditions. Mertens theorem gives the dimension-three densityso the main terms in the Buchstab sum are bounded byThis convergent tail can be made smaller than by taking large. The weighted remainder terms are : the estimate controls the summed remainders, while part d controls uniformly the loss caused by the finite sieve level. Choosing sufficiently small relative to , and then taking large, therefore givesfor some absolute .
For every counted , the distinct prime divisors of are either below the fixed or at least . The first class contains at most primes, while makes the second class contain at mostprimes. Since every prime divisor of , , or divides ,after enlarging an absolute constant . A positive proportion occurs for arbitrarily large , so infinitely many such exist. This is the almost-primes from an upper-bound sieve and Buchstab identity method.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 117 1 f Solution 2026-09-28
Replace by . The only change is at the locally obstructing primes: every value is divisible by , and every value is divisible by , so omit both primes from . For every , the three roots are distinct and again give and . All Selberg upper-bound sieve, Buchstab identity, and large-prime-factor estimates from part e are unchanged, proving the analogous result.
Prime-tuple upper bound from the Selberg sieve Created 2026-10-03 Updated 2026-10-14
For distinct natural numbers ,Exclude the fixed primes dividing some so that the polynomial has exactly roots modulo every remaining prime, then apply the Selberg upper-bound sieve with level .
Selberg sieve denominator asymptotic 2026-10-14
Put . As a Dirichlet convolution, , where is a multiplicative arithmetic function with , , and for . The local sums are one, so . The series converges, since the prime-local errors are . Consequently by the harmonic number estimate . This identifies the leading constant in the one-dimensional Selberg upper-bound sieve.
Twin-prime upper bound using Bombieri–Vinogradov Created 2026-10-06 Updated 2026-10-14
Apply the Selberg upper-bound sieve to the numbers with prime. For odd squarefree integers , the local count is and the density is . With sieve level , the normalizing sum is by the truncated Euler-product lower bound. The Selberg least-common-multiple weights have absolute values at most . The weighted arithmetic-progression error bound and Bombieri–Vinogradov theorem make their total error . Consequently the number of twin prime pairs with smaller member at most is .