lean_workbook_plus_3950
ProvedAnother way is to observe that, for integers and , Since any integer can be written as for , , or , it follows that its cube must be congruent to , , or mod .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_3950 (n k : ℤ) (h₀ : 0 ≤ k ∧ k ≤ 2) : (3 * n + k)^3 % 9 = k^3 % 9 := by sorry
Source