The leading prime-power residue determines the reduced reciprocal denominator
ProvedErdos287.exact_prime_power_in_reduced_denominatoregyptian-fractionserdos-problemsnumber-theory
Let be a finite set of positive denominators with integer weights , and let be prime. Fix such that for all . Choose a common multiple of all with , with . The -valuation of the reduced denominator of is exactly if and only if
In particular, this criterion applies to the signed difference of two candidate reciprocal sums.
Preamble
import Mathlib
Formal statement
theorem Erdos287.exact_prime_power_in_reduced_denominator (D : Finset ℕ) (w : ℕ → ℤ) (p e L : ℕ)
(hp : p.Prime) (he : 1 ≤ e) (hL : ¬ p ∣ L)
(hpos : ∀ n ∈ D, 0 < n) (hmax : ∀ n ∈ D, padicValNat p n ≤ e)
(hcof : ∀ n ∈ D, padicValNat p n = e → n / p ^ e ∣ L) :
padicValNat p (∑ n ∈ D, (w n : ℚ) / n).den = e ↔
¬ (p : ℤ) ∣ ∑ n ∈ D.filter (fun n => padicValNat p n = e),
w n * ((L / (n / p ^ e) : ℕ) : ℤ) := by sorry
Source
Erdős Problem 287, https://www.erdosproblems.com/287. The leading valuation test for arbitrary weighted reciprocal sums.