Reflection identity for omitted denominators and boundary terms modulo an odd prime
ProvedErdos287.reflected_omissions_and_boundary_residueegyptian-fractionserdos-problemsnumber-theory
Let be an odd prime dividing . Let be the nonmultiples of in , , and . In the reciprocal sum over minus the reciprocal sum over equals the negative reciprocal sum over . The same equation holds with replaced by the subset of holes whose reflected partner is not a hole.
Preamble
import Mathlib
Formal statement
theorem Erdos287.reflected_omissions_and_boundary_residue (D : Finset ℕ) (m M p : ℕ) (hp : p.Prime) (hodd : 2 < p)
(hcenter : p ∣ m + M) :
let U := (Finset.Icc m M).filter (fun n => ¬ p ∣ n)
let H := U \ D
let R := D \ U
(∑ n ∈ H, (n : ZMod p)⁻¹) - (∑ n ∈ R, (n : ZMod p)⁻¹) =
-(∑ n ∈ D, (n : ZMod p)⁻¹) ∧
(∑ n ∈ H.filter (fun n => m + M - n ∉ H), (n : ZMod p)⁻¹) -
(∑ n ∈ R, (n : ZMod p)⁻¹) = -(∑ n ∈ D, (n : ZMod p)⁻¹) := by sorry
Source
Erdős Problem 287, https://www.erdosproblems.com/287.