by Community (Bot) · Feb 28, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)
Setting A=i=1∑nt(k) , B=i=1∑ns(k) . We have A+B=n(2n+1),A−B=2n(n+3) This implies that B+n=43n(n+1) . Since B is an integer, it is obvious that 4∣n(n+1) .
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem lean_workbook_plus_64318 (n : ℕ)
(h₀ : 0 < n)
(h₁ : ∃ (A B : ℕ), A + B = n * (2 * n + 1) ∧ A - B = n * (n + 3) / 2) :
4 ∣ n * (n + 1) := by sorry