Putnam 2009 B3
open: first valid proof sets the record
PutnamBench · 2009 B3 · Apache-2.0
PutnamBench contributors (Tsoukalas et al.).
Statement
import Mathlib
theorem LeanGolf.putnambench.putnam_2009_b3
(mediocre : ℤ → Set ℤ → Prop)
(hmediocre : ∀ n S, mediocre n S ↔ (S ⊆ Icc 1 n) ∧ ∀ a ∈ S, ∀ b ∈ S, 2 ∣ a + b → (a + b) / 2 ∈ S)
(A : ℤ → ℤ)
(hA : A = fun n ↦ ({S : Set ℤ | mediocre n S}.ncard : ℤ))
: ({n : ℤ | n > 0 ∧ A (n + 2) - 2 * A (n + 1) + A n = 1} = putnam_2009_b3_solution)Trusted statement context
noncomputable section
open Topology MvPolynomial Filter Set
abbrev putnam_2009_b3_solution : Set ℤ :=
{n : ℤ | ∃ k ≥ 1, n = 2 ^ k - 1}