Discrete mathematics question $2-2\times 7+2\times 7^2− \cdots +2(-7)^n = \frac{1-(-7)^{n+1}}{4}$

algebra-precalculusdiscrete mathematicsinductionsummation

This question is from the book Discrete Mathematics and its Applications by Kenneth Rosen page 329. Again for question 8 I face the same probelm I know the solution but I do not understand it.

Question 8) Prove that: $2 − 2\times 7 + 2\times 7^2 − \cdots + 2(−7)^n = \frac{1−(−7)^{n+1}}{4}$ whenever $n$ is a nonnegative integer.

enter image description here

The answer:
enter image description here
enter image description here

The problem is I don't understand it especially the last part I marked in red can someone explain it to me please?

Best Answer

We have:

\begin{align} [2-2*7+2*7^2-...+2*(-7)^{k}]+2*(-7)^{k+1} &=\frac{1-(-7)^{k+1}+8(-7)^{k+1}}{4}\\ &=\frac{1+8(-7)^{k+1}-1(-7)^{k+1}}{4} \end{align} Can you take it from here?

Related Question