/-
Copyright 2025 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/
import FormalConjecturesUtilErdős Problem 145
namespace Erdos145
open Filteropen scoped TopologyLet $s_1 < s_2 < \cdots$ be the sequence of squarefree numbers.
noncomputable abbrev s (n : ℕ) : ℕ := Nat.nth Squarefree nLet $A(x)$ denote the set of indices $n$ for which $s_n \leq x$.
noncomputable abbrev A (x : ℝ) : Finset ℕ :=
(Finset.Icc 0 ⌊x⌋₊).preimage s (Nat.nth_injective Nat.squarefree_infinite).injOn
Let $s_1 < s_2 < \cdots$ be the sequence of squarefree numbers. Is it true that, for any $\alpha\geq 0$, $$ \lim_{x\to\infty} \frac{1}{x}\sum_{s_n\leq x}(s_{n+1}-s_n)^\alpha $$ exists?
@[category research open, AMS 11]
theorem erdos_145 :
answer(sorry) ↔ ∀ α ≥ (0 : ℝ), ∃ β : ℝ,
atTop.Tendsto (fun x : ℝ ↦ 1 / x * ∑ n ∈ A x, (s (n + 1) - s n : ℝ) ^ α) (𝓝 β) := ⊢ True ↔ ∀ α ≥ 0, ∃ β, Tendsto (fun x => 1 / x * ∑ n ∈ A x, (↑(s (n + 1)) - ↑(s n)) ^ α) atTop (𝓝 β)
All goals completed! 🐙
Erdős [Er51] proved this for all $0\leq \alpha\leq 2$.
[Er51] Erdös, P., Some problems and results in elementary number theory. Publ. Math. Debrecen (1951), 103-109.
@[category research solved, AMS 11]
theorem erdos_145.variants.le_two {α : ℝ} (hα : α ∈ Set.Icc 0 2) :
∃ β : ℝ,
atTop.Tendsto (fun x : ℝ ↦ 1 / x * ∑ n ∈ A x, (s (n + 1) - s n : ℝ) ^ α) (𝓝 β) := α:ℝhα:α ∈ Set.Icc 0 2⊢ ∃ β, Tendsto (fun x => 1 / x * ∑ n ∈ A x, (↑(s (n + 1)) - ↑(s n)) ^ α) atTop (𝓝 β)
All goals completed! 🐙
Hooley [Ho73] extended this to all $0 \leq \alpha\leq 3$.
[Ho73] Hooley, Christopher, On the intervals between consecutive terms of sequences. Proc. Symp. Pure Math, vol. 24, pp. 129-140. 1973.
@[category research solved, AMS 11]
theorem erdos_145.variants.le_three {α : ℝ} (hα : α ∈ Set.Icc 0 3) :
∃ β : ℝ,
atTop.Tendsto (fun x : ℝ ↦ 1 / x * ∑ n ∈ A x, (s (n + 1) - s n : ℝ) ^ α) (𝓝 β) := α:ℝhα:α ∈ Set.Icc 0 3⊢ ∃ β, Tendsto (fun x => 1 / x * ∑ n ∈ A x, (↑(s (n + 1)) - ↑(s n)) ^ α) atTop (𝓝 β)
All goals completed! 🐙
Greaves, Harman, and Huxley [GHH97] showed that this is true for $0 \leq \alpha\leq 11/3$.
[GHH97] Greaves, G. R. H. and Harman, G. and Huxley, M. N., Sieve Methods, Exponential Sums, and their Applications in Number Theory. (1997).
@[category research solved, AMS 11]
theorem erdos_145.variants.le_eleven_thirds {α : ℝ} (hα : α ∈ Set.Icc 0 (11 / 3)) :
∃ β : ℝ,
atTop.Tendsto (fun x : ℝ ↦ 1 / x * ∑ n ∈ A x, (s (n + 1) - s n : ℝ) ^ α) (𝓝 β) := α:ℝhα:α ∈ Set.Icc 0 (11 / 3)⊢ ∃ β, Tendsto (fun x => 1 / x * ∑ n ∈ A x, (↑(s (n + 1)) - ↑(s n)) ^ α) atTop (𝓝 β)
All goals completed! 🐙
end Erdos145