Putnam 2020 A5
open: first valid proof sets the record
PutnamBench · 2020 A5 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).
Statement
import Mathlib
theorem LeanGolf.putnambench.putnam_2020_a5
(a : ℤ → ℕ)
(ha : a = fun n : ℤ => {S : Finset ℕ | (∀ k ∈ S, k > 0) ∧ ∑ k : S, Nat.fib k = n}.ncard) :
IsGreatest {n | a n = 2020} putnam_2020_a5_solutionTrusted statement context
noncomputable section
open Filter Topology Set
abbrev putnam_2020_a5_solution : ℤ :=
(Nat.fib 4040) - 1