gcd_cyclotomic_dvd_19
Provedcyclotomicdivisibilityflt-n19gcdgraph-theoryopen-problem
gcd(a+b, Phi19(a,b)) divides 19 when gcd(a,b)=1. Uses 19*b^18 = Phi19(a,b) - (a+b)*Q19(a,b) where Q19 has degree 17 with coefficients 1,-2,...,-18.
Preamble
import Mathlib.Data.Int.Basic import Mathlib.Data.Int.GCD import Mathlib.Tactic.Ring
Formal statement
theorem gcd_cyclotomic_dvd_19 (a b : ℤ) (hab : Int.gcd a b = 1) : (Int.gcd (a + b) (a ^ 18 - a ^ 17 * b + a ^ 16 * b ^ 2 - a ^ 15 * b ^ 3 + a ^ 14 * b ^ 4 - a ^ 13 * b ^ 5 + a ^ 12 * b ^ 6 - a ^ 11 * b ^ 7 + a ^ 10 * b ^ 8 - a ^ 9 * b ^ 9 + a ^ 8 * b ^ 10 - a ^ 7 * b ^ 11 + a ^ 6 * b ^ 12 - a ^ 5 * b ^ 13 + a ^ 4 * b ^ 14 - a ^ 3 * b ^ 15 + a ^ 2 * b ^ 16 - a * b ^ 17 + b ^ 18) : ℤ) ∣ 19 := by sorry