Prove using mathematical induction that for all n≥1
1+4+7+..+(3n-2)=n(3n−1)2
For any integer n≥1,Pn be the statement that
1+4+7+..+(3n-2)=n(3n−1)2
Base case–––––––––––: The statement P1 says that
1=1(3−1)2.
Which is true.
Inductive step. Fix k≥1 , and supoose that Pk holds, that is,
1+4+7+...+(3k−2)=k(3k−1)2.
It remains to show that pk+1 holds, that is,
1+4+7+...+(3(k+1)−2)=(k+1)(3(k+1)−1)2.
1+4+7+...+(3(k+1)−2)=1+4+7+...+(3(k+1)−2)
= 1+4+7+...+(3k+1)
= 1+4+7+...+(3k−2)+(3k+1)
=k(3k−1)2+(3k+1)
= k(3k−1)+2(3k+1)2
=3k2−k+6k+22
=3k2+5k+22
=(k+1)(3k+2)2
= (k+1)(3(k+1)−1)2
∴ Pk+1holds.
thus, by the principle of mathematical induction for all n≥1,Pn holds.