Let P(n) be the statement
12+22+32+…+n2=6n(n+1)(2n+1).
Base case: For n=1,
LHS=12=1,RHS=61(1+1)(2⋅1+1)=61⋅2⋅3=1.
Since LHS = RHS, P(1) is true.
Inductive step: Assume P(k) is true for some k≥1, i.e.
12+22+…+k2=6k(k+1)(2k+1).(Induction Hypothesis)
We must show P(k+1) is true, i.e.
12+22+…+k2+(k+1)2=6(k+1)(k+2)(2k+3).
Starting from the LHS and using the induction hypothesis:
12+22+…+k2+(k+1)2=6k(k+1)(2k+1)+(k+1)2
=(k+1)[6k(2k+1)+(k+1)]=(k+1)⋅6k(2k+1)+6(k+1)
Expand the bracket:
k(2k+1)+6(k+1)=2k2+k+6k+6=2k2+7k+6=(k+2)(2k+3)
So
12+22+…+(k+1)2=6(k+1)(k+2)(2k+3)=6(k+1)((k+1)+1)(2(k+1)+1),
which is exactly P(k+1).
Thus P(k)⇒P(k+1).
✓Final answer
Since P(1) is true and P(k)⇒P(k+1) for every k≥1, by the Principle of Mathematical Induction P(n) is true for all n≥1: 12+22+…+n2=6n(n+1)(2n+1).