IMO1964 P1A
118 characters · @rpinho ·
Compfiles · Imo · Apache-2.0
Copyright (c) 2023 David Renshaw. All rights reserved. Authors: David Renshaw, Anand Rao, Harald Carlens
Statement
import Mathlib.Data.Nat.ModEq
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo1964_p1a (n : ℕ) : n ∈ solution_set ↔ 2^n ≡ 1 [MOD 7]Trusted statement context
noncomputable section
namespace Imo1964P1
abbrev solution_set : Set ℕ := { n | n % 3 = 0 }Record proof
import Mathlib.Data.Nat.ModEq
import Mathlib.Tactic
theorem _root_.LeanGolf.compfiles.imo1964_p1a (n : ℕ) : n ∈ solution_set ↔ 2^n ≡ 1 [MOD 7] := by
induction n using Nat.strongRecOn with
| ind n H =>
rcases n with _|(_|(_|n)) <;> try decide
have := H n (by lia)
grind [Nat.ModEq,pow_succ]Record history
| Holder | Characters | Date |
|---|---|---|
| @rpinho | 118 |