lean_workbook_plus_30969
ProvedNow we count the number of quadruples modulo when is prime. For this we fix any pair as long as . (Since clearly cannot lead to a solution of .) This can be done in ways. Suppose that (otherwise do the same argument with ). Pick any (in ways). Then is uniquely determined modulo as times the multiplicative inverse of modulo . Thus is uniquely determined in . In total, .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_30969 (p : ℕ) (f : ℕ → ℕ) (h₀ : ∀ x, f x = (x^2 - 1)*x) (h₁ : Nat.Prime p) : f p = p * (p^2 - 1) := by sorry
Source