USA1988 P5
open: first valid proof sets the record
Compfiles · Usa · Apache-2.0
Copyright (c) 2026 The Compfiles Contributors. All rights reserved. Authors: Kimi K3
Statement
import Mathlib.Algebra.Order.Ring.Star
import Mathlib.Algebra.Polynomial.Eval.Coeff
import Mathlib
theorem _root_.LeanGolf.compfiles.usa1988_p5 (a : ℕ → ℕ)
(h1 : (prodForm a).coeff 1 = -2)
(hz : ∀ k, 2 ≤ k → k ≤ 32 → (prodForm a).coeff k = 0) :
a 32 = answerTrusted statement context
noncomputable section
namespace Usa1988P5
open Polynomial
noncomputable def prodForm (a : ℕ → ℕ) : ℚ[X] := ∏ i ∈ Finset.Icc 1 32, (1 - X ^ i) ^ a i
abbrev answer : ℕ := 2 ^ 27 - 2 ^ 11