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

Reference: erdosproblems.com/1093

namespace Erdos1093 open Finset Nat

If defined, the deficiency is the count of $0 \le i < k$ such that $n - i$ is $k$-smooth.

noncomputable def deficiency (n k : ) : := #{i range k | n - i smoothNumbers k}

Are there infinitely many binomial coefficients with deficiency 1?

@[category research open, AMS 5] theorem declaration uses 'sorry'erdos_1093.parts.i : answer(sorry) {x : × | let k := x.1; let n := x.2; 2 * k n deficiency n k = 1 p, p.Prime (p choose n k) k < p}.Infinite := True {x | let k := x.1; let n := x.2; 2 * k n deficiency n k = 1 (p : ), Nat.Prime p p n.choose k k < p}.Infinite All goals completed! 🐙

Are there only finitely many binomial coefficients with deficiency > 1?

@[category research open, AMS 5] theorem declaration uses 'sorry'erdos_1093.parts.ii : {x : × | let k := x.1; let n := x.2; 2 * k n deficiency n k > 1 p, p.Prime (p choose n k) k < p}.Finite := {x | let k := x.1; let n := x.2; 2 * k n deficiency n k > 1 (p : ), Nat.Prime p p n.choose k k < p}.Finite All goals completed! 🐙 end Erdos1093