flyingpig
- 2,574
- 1
Homework Statement
Prove that for every integer n\geq1, that
1^2 + 2^2 + ... + n^2 = \frac{n(n + 1)(2n + 1)}{6}2. The attempt at a solution
Note that everything after this sentence are what I am going to write in my assignment to hand in.
(1) Base Case
S(n) : \frac{n(n + 1)(2n + 1)}{6}
Assume it is true for n = 1
S(1) : \frac{1(1 + 1)(2 + 1)}{6} = 1 = 1^2
Which is true
(2) Inductive Step, let n = k + 1, then
S(k + 1) : \frac{(k + 1)(k + 2)(2k + 3)}{6}
1^2 + 2^2 + ... + k^2 + (k + 1)^2 = \frac{k(k + 1)(2k + 1)}{6} + (k + 1)^2
= \frac{k(k + 1)(2k + 1)}{6} + \frac{6(k + 1)^2}{6} = \frac{k(k + 1)(2k + 1) + 6(k + 1)^2}{6}
= (k + 1)\frac{k(2k + 1) + 6(k + 1)}{6} = \frac{k + 1}{6} (2k^2 + 7k + 6) = \frac{k + 1}{6} (k + 2)(2k + 3) = \frac{(k + 1)(k + 2)(2k + 3)}{6}
Therefore by Principles of Mathematical Induction, 1^2 + 2^2 + ... + n^2 = \frac{n(n + 1)(2n + 1)}{6} is true for all integers n\geq1
Q.E.D
Questions
a) Is it okay to say "all" instead of "every"?
b) Yeah I will try to line it up in my real assignment, but I couldn't figure out how to do it here.
c) DO I have to put that Q.E.D thing to look smart?
d) Did I do it correctly or did I totally embarrassed myself