Exact finite translation table using the full cofactor carry
ProvedErdos287.full_cofactor_residue_tableegyptian-fractionserdos-problemsnumber-theory
For prime and a finite family of cofactor patterns of diameter less than , set . Each nonempty selected pattern in a positive denominator set of reciprocal sum one has its translation in a finite set of classes modulo . The set is given exactly by testing, at the positive representative , whether some nonempty pattern has its cleared numerator divisible by , where is the product of its cofactors.
Preamble
import Mathlib
Formal statement
theorem Erdos287.full_cofactor_residue_table (p h : ℕ) (hp : p.Prime) (F : Finset (Finset ℕ))
(hwidth : ∀ T ∈ F, ∀ a ∈ T, ∀ b ∈ T, a < b + p ^ (h + 1)) :
let P := p ^ (2 * h + 1)
∃ R : Finset (ZMod P),
(∀ z : ZMod P, z ∈ R ↔ ∃ T ∈ F, T.Nonempty ∧
let c := z.val + P
let L := ∏ d ∈ T, (c + d)
p ^ (padicValNat p L + 1) ∣ ∑ i ∈ T, ∏ d ∈ T.erase i, (c + d)) ∧
∀ (D : Finset ℕ) (e c : ℕ), 1 ≤ e → 0 < c →
(∀ n ∈ D, 0 < n) → (∑ n ∈ D, (1 : ℚ) / n = 1) →
∀ T ∈ F,
T.image (fun d => (c + d) * p ^ e) = D.filter (fun n => p ^ e ∣ n) →
T.Nonempty → (c : ZMod P) ∈ R := by sorry
Source
Erdős Problem 287, https://www.erdosproblems.com/287.