Polynomial residue test for translated prime-power cofactor patterns
ProvedErdos287.cofactor_translation_residuesegyptian-fractionserdos-problemsnumber-theory
Let a finite positive denominator set have reciprocal sum one. If the selected multiples of have cofactors for prime , and , the sum of the products of all but one of these cofactors vanishes modulo . For any finite family of offset sets, each with size below , the allowed translations for nonempty layers lie in a residue set of size at most . The residue set is exactly the union of zeros of the cleared cofactor numerators for the nonempty patterns.
Preamble
import Mathlib
Formal statement
theorem Erdos287.cofactor_translation_residues (p : ℕ) (hp : p.Prime) :
(∀ (D T : Finset ℕ) (e c : ℕ), 1 ≤ e → 0 < c →
(∀ n ∈ D, 0 < n) → (∑ n ∈ D, (1 : ℚ) / n = 1) →
T.image (fun d => (c + d) * p ^ e) = D.filter (fun n => p ^ e ∣ n) →
(∑ a ∈ T, ∏ b ∈ T.erase a, ((c : ZMod p) + b)) = 0) ∧
∀ (F : Finset (Finset ℕ)), (∀ T ∈ F, T.card < p) →
∃ R : Finset (ZMod p),
R.card ≤ ∑ T ∈ F, (T.card - 1) ∧
(∀ x : ZMod p, x ∈ R ↔ ∃ T ∈ F, T.Nonempty ∧
(∑ a ∈ T, ∏ b ∈ T.erase a, (x + (b : ZMod p))) = 0) ∧
∀ (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.