Erdős Problem 968 #
Let uₙ = pₙ / n, where pₙ is the nth prime. Does the set of n such that uₙ < uₙ₊₁
have positive density?
Erdős and Prachar also proved that ∑_{pₙ < x} |uₙ₊₁ - uₙ| ≍ (log x)^2, and that the set of n
such that uₙ > uₙ₊₁ has positive density. Erdős also asked whether there are infinitely many
increasing triples uₙ < uₙ₊₁ < uₙ₊₂ or decreasing triples uₙ > uₙ₊₁ > uₙ₊₂.
Reference: erdosproblems.com/968
[ErPr61] Erdős, P. and Prachar, K., Sätze und Probleme über pₖ/k. Abh. Math. Sem. Univ. Hamburg (1961/62), 251–256.
theorem
Erdos968.erdos_968.variants.sum_abs_diff_isTheta_log_sq :
(fun (x : ℕ) => ∑ n ∈ Finset.Iio x.primeCounting', |u (n + 1) - u n|) =Θ[Filter.atTop] fun (x : ℕ) => Real.log ↑x ^ 2
Erdős and Prachar proved ∑_{pₙ < x} |u (n+1) - u n| ≍ (log x)^2 (see [ErPr61]).
We encode ∑_{pₙ < x} as a sum over n < Nat.primeCounting' x (the number of primes < x).