USA1992 P1
open: first valid proof sets the record
Compfiles · Usa · Apache-2.0
Copyright (c) 2024 The Compfiles Contributors. All rights reserved. Authors: David Renshaw
Statement
import Mathlib.Data.Nat.Digits.Lemmas
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.usa1992_p1 (n : ℕ) :
(Nat.digits 10
(∏ i ∈ Finset.range (n + 1), (10^(2^i) - 1))).sum = solution nTrusted statement context
noncomputable section
namespace Usa1992P1
abbrev solution : ℕ → ℕ := fun n ↦ 9 * 2 ^ n