Question #60952

prove that 1^2+2^2+3^2+-----n^2=n(n+1)(2n+1) for all positive integers

Expert's answer

Answer on Question #60952 – Math – Discrete Mathematics

Question

Prove that 12+22+32++n2=n(n+1)(2n+1)61^2 + 2^2 + 3^2 + \ldots + n^2 = \frac{n(n+1)(2n+1)}{6}

Proof

We will use mathematical induction to prove this formula.

**Basis**: n=1n = 1 (the least positive integer). The statement is


12=1236.1^2 = \frac{1 \cdot 2 \cdot 3}{6}.


Obviously it's true.

**Inductive step**:

Assuming the statement is true for n=kn = k:


12+22++k2=k(k+1)(2k+1)6.1^2 + 2^2 + \ldots + k^2 = \frac{k(k+1)(2k+1)}{6}.


We must prove that the statement is true for n=k+1n = k + 1:


12+22++k2+(k+1)2=(k+1)(k+2)(2k+3)6.1^2 + 2^2 + \ldots + k^2 + (k+1)^2 = \frac{(k+1)(k+2)(2k+3)}{6}.


**Consider**


(12+22++k2)+(k+1)2=k(k+1)(2k+1)6+(k+1)2==k(k+1)(2k+1)+6(k+1)26=(k+1)(2k2+k+6k+6)6==(k+1)(2k2+7k+6)6=(k+1)(k+2)(2k+3)6\begin{aligned} (1^2 + 2^2 + \ldots + k^2) + (k+1)^2 &= \frac{k(k+1)(2k+1)}{6} + (k+1)^2 = \\ &= \frac{k(k+1)(2k+1) + 6(k+1)^2}{6} = \frac{(k+1)(2k^2 + k + 6k + 6)}{6} = \\ &= \frac{(k+1)(2k^2 + 7k + 6)}{6} = \frac{(k+1)(k+2)(2k+3)}{6} \end{aligned}


Therefore, by the principle of mathematical induction, the given statement is true for every positive integer nn.

www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS