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

Reference: erdosproblems.com/377

open Filter open scoped Topology namespace Erdos377

The sum of the inverses of all primes smaller than $n$, which don't divide the central binom coefficient.

noncomputable abbrev sumInvPrimesNotDvdCentralBinom (n : ) : := p Finset.Icc 1 n with p.Prime, if p n.centralBinom then 0 else (1 : ) / p

Is there some absolute constant $C > 0$ such that $$ \sum_{p \leq n} 1_{p\nmid {2n \choose n}}\frac{1}{p} \leq C $$ for all $n$?

@[category research open, AMS 11] theorem declaration uses 'sorry'erdos_377 : answer(sorry) C > (0 : ), (n : ), sumInvPrimesNotDvdCentralBinom n C := True C > 0, (n : ), sumInvPrimesNotDvdCentralBinom n C All goals completed! 🐙

Erdos, Graham, Ruzsa, and Straus proved that if $$ f(n) = \sum_{p \leq n} 1_{p\nmid {2n \choose n}}\frac{1}{p} $$ and $$ \gamma_0 = \sum_{k = 2}^{\infty} \frac{\log k}{2^k} $$ then $$ \lim_{x\to\infty} \frac{1}{x}\sum_{n\leq x} f(n) = \gamma_0 $$

[EGRS75] Erdős, P. and Graham, R. L. and Ruzsa, I. Z. and Straus, E. G., On the prime factors of $\binom{2n}{n}$. Math. Comp. (1975), 83-92.

@[category research solved, AMS 11] theorem declaration uses 'sorry'erdos_377.variants.limit.i (γ₀ : ) (hγ₀ : γ₀ = ∑' (k : ), (k + 2 : ).log / 2 ^ (k + 2)) : Tendsto (fun (x : ) => (1 : ) / x * n Finset.Icc 1 x, sumInvPrimesNotDvdCentralBinom n) atTop (𝓝 γ₀) := γ₀:hγ₀:γ₀ = ∑' (k : ), Real.log (k + 2) / 2 ^ (k + 2)Tendsto (fun x => 1 / x * n Finset.Icc 1 x, sumInvPrimesNotDvdCentralBinom n) atTop (𝓝 γ₀) All goals completed! 🐙

Erdos, Graham, Ruzsa, and Straus proved that if $$ f(n) = \sum_{p \leq n} 1_{p\nmid {2n \choose n}}\frac{1}{p} $$ and $$ \gamma_0 = \sum_{k = 2}^{\infty} \frac{\log k}{2^k} $$ then $$ \lim_{x\to\infty} \frac{1}{x}\sum_{n\leq x} f(n)^2 = \gamma_0^2 $$

[EGRS75] Erdős, P. and Graham, R. L. and Ruzsa, I. Z. and Straus, E. G., On the prime factors of $\binom{2n}{n}$. Math. Comp. (1975), 83-92.

@[category research solved, AMS 11] theorem declaration uses 'sorry'erdos_377.variants.limit.ii (γ₀ : ) (hγ₀ : γ₀ = ∑' (k : ), (k + 2 : ).log / 2 ^ (k + 2)) : Tendsto (fun (x : ) => (1 : ) / x * n Finset.Icc 1 x, sumInvPrimesNotDvdCentralBinom n ^ 2) atTop (𝓝 (γ₀ ^ 2)) := γ₀:hγ₀:γ₀ = ∑' (k : ), Real.log (k + 2) / 2 ^ (k + 2)Tendsto (fun x => 1 / x * n Finset.Icc 1 x, sumInvPrimesNotDvdCentralBinom n ^ 2) atTop (𝓝 (γ₀ ^ 2)) All goals completed! 🐙

Erdos, Graham, Ruzsa, and Straus proved that if $$ f(n) = \sum_{p \leq n} 1_{p\nmid {2n \choose n}}\frac{1}{p} $$ and $$ \gamma_0 = \sum_{k = 2}^{\infty} \frac{\log k}{2^k} $$ then for almost all integers $f(m) = \gamma_0 + o(1)$.

[EGRS75] Erdős, P. and Graham, R. L. and Ruzsa, I. Z. and Straus, E. G., On the prime factors of $\binom{2n}{n}$. Math. Comp. (1975), 83-92.

@[category research solved, AMS 11] theorem declaration uses 'sorry'erdos_377.variants.ae (γ₀ : ) (hγ₀ : γ₀ = ∑' (k : ), (k + 2 : ).log / 2 ^ (k + 2)) : (o : ) (_ : Tendsto o atTop (𝓝 0)), ∀ᶠ n in cofinite, sumInvPrimesNotDvdCentralBinom n = γ₀ + o n := γ₀:hγ₀:γ₀ = ∑' (k : ), Real.log (k + 2) / 2 ^ (k + 2) o, (_ : Tendsto o atTop (𝓝 0)), ∀ᶠ (n : ) in cofinite, sumInvPrimesNotDvdCentralBinom n = γ₀ + o n All goals completed! 🐙

Erdos, Graham, Ruzsa, and Straus proved that if $$ f(n) = \sum_{p \leq n} 1_{p\nmid {2n \choose n}}\frac{1}{p} $$ then there is some constant $c < 1$ such that for all large $n$ $$ f(n) \leq c \log\log n. $$

[EGRS75] Erdős, P. and Graham, R. L. and Ruzsa, I. Z. and Straus, E. G., On the prime factors of $\binom{2n}{n}$. Math. Comp. (1975), 83-92.

@[category research solved, AMS 11] theorem declaration uses 'sorry'erdos_377.variants.ub : c < (1 : ), ∀ᶠ n in atTop, sumInvPrimesNotDvdCentralBinom n c * (n : ).log.log := c < 1, ∀ᶠ (n : ) in atTop, sumInvPrimesNotDvdCentralBinom n c * Real.log (Real.log n) All goals completed! 🐙 end Erdos377