Wednesday, 25 July 2018

proof verification - Prove that 12+22+cdots+n2=fracn(n+1)(2n+1)6 for ninmathbbN.




Problem: Prove that 12+22++n2=n(n+1)(2n+1)6 for nN.



My work: So I think I have to do a proof by induction and I just wanted some help editing my proof.



My attempt:



Let P(n)=12+22++n2=n(n+1)(2n+1)6 for nN.
Then P(1)=12=1(1+1)(2+1)6
1=66.

So P(1) is true.



Next suppose that P(k)=12+22++k2=k(k+1)(2k+1)6 for kN. Then adding (k+1)2 to both sides of P(k) we obtain the following:
12+22++k2+(k+1)2=k(k+1)(2k+1)6+(k+1)2
=2k3+3k2+k+6(k2+2k+1)6
=2k3+9k2+13k+66
=(k2+3k+2)(2k+3)6
=(k+1)(k+2)(2k+3)6
=(k+1)((k+1)+1)(2(k+1)+1)6
=P(k+1).

Thus P(k) is true for kN.
Hence by mathematical induction, 12+22++n2=n(n+1)(2n+1)6 is true for nN.


Answer



I am going to provide what I think is a nice way of writing up a proof, both in terms of accuracy and in terms of communication. You be the judge(s).






Claim: For n1, let S(n) be the statement
S(n):12+22+32++n2=n(n+1)(2n+1)6.



Base step (n=1): The statement S(1) says 12=1(2)(3)/6 which is true.



Inductive step (S(k)S(k+1)): Fix some k1 and suppose that
S(k):12+22+32++k2=k(k+1)(2k+1)6
holds. To be shown is that
S(k+1):12+22+32++k2+(k+1)2=(k+1)(k+2)(2(k+1)+1)6
follows. Starting with the left-hand side of S(k+1),
LHS=12+22+32++k2+(k+1)2=k(k+1)(2k+1)6+(k+1)2=(k+1)[k(2k+1)6+(k+1)]=(k+1)k(2k+1)+6(k+1)6=(k+1)2k2+k+6k+66=(k+1)2k2+7k+66=(k+1)(k+2)(2k+3)6=(k+1)(k+2)(2(k+1)+1)6=RHS,
the right-hand side of S(k+1) follows. This completes the inductive step.



Thus, by mathematical induction, for every n1,S(n) is true.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...