-- level: 2 import Mathlib /-! Prove that six times the sum of the squares from $0^2$ to $n^2$ is $n(n+1)(2n+1)$: $6(0^2+1^2+\cdots+n^2)=n(n+1)(2n+1)$. -/ theorem sum_sq_six (n : ℕ) : 6 * (∑ i ∈ Finset.range (n + 1), i ^ 2) = n * (n + 1) * (2 * n + 1) := by sorry