Putnam 1986 A4
open: first valid proof sets the record
PutnamBench · 1986 A4 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).
Statement
import Mathlib
theorem LeanGolf.putnambench.putnam_1986_a4
(f : ℕ → ℕ)
(hf : f = fun n ↦
Set.ncard {A : Matrix (Fin n) (Fin n) ℤ |
(∀ i j : Fin n, A i j ∈ ({-1, 0, 1} : Set ℤ)) ∧
∃ S : ℤ, ∀ ϕ : Perm (Fin n), ∑ i : Fin n, A i (ϕ i) = S}) :
let (a1, b1, a2, b2, a3, b3, a4) := putnam_1986_a4_solution;
(∀ n > 0, f n = a1 * b1 ^ n + a2 * b2 ^ n + a3 * b3 ^ n + a4)Trusted statement context
noncomputable section
open Real Equiv
abbrev putnam_1986_a4_solution : ℚ × ℚ × ℚ × ℚ × ℚ × ℚ × ℚ :=
(1, 4, 2, 3, -4, 2, 1)