Prove that 1+2+..+n = n(n+1)/2
Let P(n) be the statement: 1+2+..+n = n(n+1)/2
the first step is to solve for P(1), which both sides will be 1 if you work through the math.
the next step is to assume that P(k) is true and then lastly we need to prove it true for P(k+1).
The math in the example shows:
1+2+..+k+(k+1) = k(k+1)/2 + (k+1)
1+2+..+k+(k+1) = (k+1)(k+2)/2
I don't understand how they went from the first step to the second step. Where does the (k+2) come in, and I don't understand how its true.
Let P(n) be the statement: 1+2+..+n = n(n+1)/2
the first step is to solve for P(1), which both sides will be 1 if you work through the math.
the next step is to assume that P(k) is true and then lastly we need to prove it true for P(k+1).
The math in the example shows:
1+2+..+k+(k+1) = k(k+1)/2 + (k+1)
1+2+..+k+(k+1) = (k+1)(k+2)/2
I don't understand how they went from the first step to the second step. Where does the (k+2) come in, and I don't understand how its true.