Iwaniec's shifted sieve ([I78, Lemma 1]) #
Let S be any set of r = π(z) primes, and match S with the primes below z in increasing
order, l : S → primesLT z, so that l(q) ≤ q. Rosser's lower-bound weights λ_d = μ(d) on
d ∈ D⁻ (supported on divisors of P(z)) are pulled back along l to divisors of
Q = ∏_{q ∈ S} q. Writing divisors of squarefree numbers as sets of primes, the weights are
rosserWeight y z A for A ⊆ primesLT z.
sum_powerset_div_prod:∑_{A ⊆ T} w(A)/∏_A g = ∏_T (1 - 1/g) ∑_{B ⊆ T} σ(B)/∏_B (g - 1).prod_mul_sum_div_le_sum: the comparison of main terms under condition (−).shiftedSieve: [I78, Lemma 1] forXconsecutive integers.R_le_prod_of_card_eq:R(z) ≤ ∏_{q ∈ S} (1 - 1/q).
Matching an arbitrary set of primes with the first primes #
If every element of S lying below some element of T belongs to T (e.g. T is the set of
the first r primes and S is any set of primes), then the i-th element of T is at most the
i-th element of S.
Möbius inversion over subsets #
The identity behind [I78, Lemma 1]: for weights w on the subsets of T (i.e. on the
divisors of ∏_{p ∈ T} p) with partial sums σ(B) = ∑_{A ⊆ B} w(A),
∑_{A ⊆ T} w(A) / ∏_{p ∈ A} g(p) = ∏_{p ∈ T} (1 - 1/g(p)) ∑_{B ⊆ T} σ(B) / ∏_{p ∈ B} (g(p) - 1).
The main-term comparison in [I78, Lemma 1]: if the partial sums of w are ≤ 0 on nonempty
sets ("condition (−)") and 1 < g ≤ f on T, then
∏ (1 - 1/f) · (∑_A w(A) / ∏_A g) / ∏ (1 - 1/g) ≤ ∑_A w(A) / ∏_A f.
Sums over rosserSet as sums over sets of primes below z.
λ_A = μ(∏_{p ∈ A} p) if ∏_{p ∈ A} p ∈ D⁻, and 0 otherwise.
Equations
- IwaniecLinearSieve.rosserWeight y z A = if ∏ p ∈ A, p ∈ IwaniecLinearSieve.rosserSet true y z then ↑(ArithmeticFunction.moebius (∏ p ∈ A, p)) else 0
Instances For
Counting multiples in an interval #
The shifted sieve #
[I78, Lemma 1] for an interval of X consecutive integers, with an explicit matching e
of the primes below z with S such that p ≤ e p.
[I78, Lemma 1] (the shifted sieve) for an interval of X consecutive integers x + k,
0 ≤ k < X, sifted by an arbitrary set S of π(z) primes, with Rosser's lower-bound weights:
#{k < X : (x + k, ∏_{q ∈ S} q) = 1} ≥ X ∏_{q ∈ S} (1 - 1/q) · (∑_{d ∈ D⁻} μ(d)/d) / R(z) - |D⁻|.