/- 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 FormalConjecturesUtil

Erdős Problem 208

Reference: erdosproblems.com/208

open Filter Real namespace Erdos208

The sequence of squarefree numbers, denoted by s as in Erdős problem 208.

noncomputable def erdos208.s : := Nat.nth Squarefree open erdos208

Let $s_1 < s_2 < \dots$ be the sequence of squarefree numbers. Is it true that for any $\epsilon > 0$ and large $n$, $s_{n+1} - s_n \ll_\epsilon s_n^\epsilon$?

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_208.parts.i : answer(sorry) ε > (0 : ), (fun n => (s (n + 1) - s n : )) =O[atTop] (fun n => (s n : )^ε) := True ε > 0, (fun n => (s (n + 1)) - (s n)) =O[atTop] fun n => (s n) ^ ε All goals completed! 🐙

Let $s_1 < s_2 < \dots$ be the sequence of squarefree numbers. Is it true that $s_{n + 1} - s_n \le (1 + o(1)) \cdot (\pi^2 / 6) \cdot \log (s_n) / \log (\log (s_n))$?

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_208.parts.ii : answer(sorry) (c : ), (c =o[atTop] (1 : )) ∀ᶠ n in atTop, s (n + 1) - s n (1 + (c n)) * (π^2 / 6) * log (s n) / log (log (s n)) := True c, c =o[atTop] 1 ∀ᶠ (n : ) in atTop, (s (n + 1)) - (s n) (1 + c n) * (π ^ 2 / 6) * log (s n) / log (log (s n)) All goals completed! 🐙

In [Er79] Erdős says perhaps $s_{n+1} - s_n \ll \log s_n$, but he is 'very doubtful'.

[Er79] Erdős, Paul, Some unconventional problems in number theory. Math. Mag. (1979), 67-70.

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_208.variants.log_bound : (fun n (s (n + 1) - s n : )) =O[atTop] fun n log (s n) := (fun n => (s (n + 1)) - (s n)) =O[atTop] fun n => log (s n) All goals completed! 🐙 end Erdos208