I can see the answer to this in my textbook; however, I am not quite sure how to solve this for myself . . . the book has the following:
To take advantage of the inductive hypothesis, we use these steps:
$ 7^{(k+1)+2} + 8^{2(k+1)+1} = 7^{k+3} + 8^{2k+3} $
$$ = 7\cdot7^{k+2} + 8^{2}\cdot8^{2k+1}\\ = 7\cdot7^{k+2} + 64\cdot8^{2k+1}\\ = 7(7^{k+2}+8^{2k+1})+57\cdot8^{2k+1}\\ $$
While the answer is apparent to me now; how exactly would I go about figuring out a similar algebraic manipulation if I were to see something like this on a test? Is there an algorithm or a way of thinking about how to break this down that I'm missing? I think I'm most lost regarding the move from the second to last and last equations.
Source: Discrete Mathematics and its Applications (7th ed), Kenneth H. Rosen (p.322)