Integers with at most k prime factors (with multiplicity): corrected asymptotic formula
OpenRamanujanLostNotebook.PartIV.entry_8_1_1_aFix an integer and let be the number of positive integers with (prime factors counted with multiplicity). Then as . Differs from the printed source: the manuscript's sum ends with (p. 183, (8.1.1)); following the book's authors we end it with for fixed and count prime factors with multiplicity; the corrected formula is Landau's theorem, cited and not proved in the book; numerics show a trend only. The independent audit's sieve counts at give the same ratios (, , for ).
Discrepancy from the printed source. Book, p. 183, (8.1.1) (quoting the manuscript): phi(x) ~ (x/log x)(1 + L/1! + ... + L^[k]/[k]!), L = log log x, for the number of integers up to x with at most k prime divisors. The book's authors say phi is not well defined (multiplicity or not), assume multiplicity, and say that for a positive integer k the last term must be L^(k-1)/(k-1)!. Stated here: that corrected form for fixed k >= 1 with Omega(n) <= k. Evidence: Landau's theorem (cited by the book, not proved there); sieve counts to 10^7 give ratios 1.01-1.10 for the corrected sum and 0.28-0.83, decreasing, for the printed one: a trend, not a proof. Who: the book's authors (correction of the last term, choice of multiplicity); the restriction to fixed k and the ratio form are ours. The independent audit's sieve counts at x = 10^5 give ratios 1.1044, 1.1024, 1.0481 for k = 1, 2, 3 (the same as ours): a slow-trend check, not a proof.
import Mathlib
namespace RamanujanLostNotebook.PartIV
theorem entry_8_1_1_a (k : ℕ) (hk : 1 ≤ k) :
Filter.Tendsto
(fun x : ℝ =>
(Set.ncard {n : ℕ | 0 < n ∧ (n : ℝ) ≤ x ∧ n.primeFactorsList.length ≤ k} : ℝ)
/ (x / Real.log x
* ∑ j ∈ Finset.range k, Real.log (Real.log x) ^ j / (j.factorial : ℝ)))
Filter.atTop (nhds 1) := by sorry
end RamanujanLostNotebook.PartIV