First of all I'm really sorry if this isn't the right tag, I was confused of what this is called, but I think this was the closest.
This is a bank model we were introducted to in the lecture, where $y(k)$ is the balance (remainder) in day $k$, and $v(k)$ is the daily income (or outcome), while $a$ is the interest (this is what google translate gave me, not sure if it fits).
And this is the general formula:
$$y(k+1)=(1+a)y(k)+v(k)$$
The example was: $v(k) = 1\space\space\space ,\forall k$
and $y(0)=0$.
So $y(1)=(1+a)y(0)+1=1$
$y(2)=(1+a)+1=2+a$.
$y(3)=a^2+3a+3$
$y(4)=(1+a)(a^2+3a+3)+1=a^3+3a^2+3a+a^2+3a+3=a^3+4a^2+6a+4$
$y(5)=(1+a)(a^3+4a^2+6a+4)+1=a^4+5a^3+10a^2+10a+5$
Now I can only see the pattern with $a^{k-1}$ (highest power), and the last thing is $+k$, I cannot really understand how we get the middle parts, I've been trying to think about different stuff, I've even reached of summing up the coefficients, but nothing seems to work.
How should I deal with this challenge? I would appreciate any help and any hints.
Thanks in advance!