Using induction?
No, just knowing how to poke summation formulae into line.
Okay, so at the end of the first year, you have:
100 * 1.05 + 100 * 1.025 – your initial investment + interest + your second investment
At the end of the second year:
(100 * 1.05 + 100 * 1.025) * 1.05 + 100 * 1.025^2
Third:
((100 * 1.05 + 100 * 1.025) * 1.05 + 100 * 1.025^2) * 1.05 + 100 * 1.025^3.
Or, to simplify terms:
100 * (1.05^3 + 1.05^2 * 1.025 + 1.05 * 1.025^2 + 1.025^3)
This looks a bit like a geometric progression, but with terms of the type Ar^k s^n-k.
So take S to be the sum:
S = x^3 + x^2 * y + x * y^2 + y^3. (this logically can be expanded to n terms).
Examine, and multiply by x/y.
Sx/y = x^4/y + x^3 + x^2 * y + x * y^2.
Subtract one from the other:
S-Sx/y = -x^4/y + y^3
Multiply by y:
Sy-Sx = y^4 – x^4
S(y-x) = y^4 – x^4.
S = (y^4-x^4)/(y-x).
And for n terms:
S = (y^(n+1) – x^(n+1))/(y-x).
Feed back into original formula to get the answer.