Maths WorkshopMaths problems with full solutions
Exercise 212Calculus › Single-variable calculus › SequencesHigh schoolAdded 2 Nov 2026

The sum of the first n squares

#induction#sums#limits

Statement

  1. Prove by induction that ∑k=1nk2=n(n+1)(2n+1)6\displaystyle\sum_{k=1}^nk^2=\frac{n(n+1)(2n+1)}6.
  2. Deduce lim⁡n→∞1n3∑k=1nk2\displaystyle\lim_{n\to\infty}\frac1{n^3}\sum_{k=1}^nk^2.
Hint

In the inductive step, add (n+1)2(n+1)^2 to the formula and factor.

Show solutionHide solution

Solution

1. Base case. n=1n=1: 1=1⋅2⋅361=\frac{1\cdot2\cdot3}6.

Inductive step. Assume the formula for nn. Then
∑k=1n+1k2=n(n+1)(2n+1)6+(n+1)2=(n+1)[n(2n+1)+6(n+1)]6=(n+1)(2n2+7n+6)6.\begin{aligned} \sum_{k=1}^{n+1}k^2&=\frac{n(n+1)(2n+1)}6+(n+1)^2 \\ &=\frac{(n+1)\bigl[n(2n+1)+6(n+1)\bigr]}6 \\ &=\frac{(n+1)(2n^2+7n+6)}6. \end{aligned}
Since 2n2+7n+6=(n+2)(2n+3)2n^2+7n+6=(n+2)(2n+3), this equals (n+1)(n+2)(2n+3)6\frac{(n+1)(n+2)(2n+3)}6, the formula at rank n+1n+1.

2.
1n3⋅n(n+1)(2n+1)6=16⋅n+1n⋅2n+1n⟶16⋅1⋅2=13.\frac1{n^3}\cdot\frac{n(n+1)(2n+1)}6=\frac16\cdot\frac{n+1}n\cdot\frac{2n+1}n\longrightarrow\frac16\cdot1\cdot2=\frac13.

Remark. This is the Riemann sum for ∫01x2 dx=13\int_0^1x^2\,dx=\frac13: the same result obtained from an algebraic formula.