These are from my textbook examples, introduced as Theorem 1,
If $T(n)=rT(n-1)+a,$ $T(0)=b$ and $r\ne 1$,
$T(n)=r^nb+\left[\frac{a(1-r^n)}{(1-r)}\right]$
And I supposed to solve other recurrence problems applying the Theorem 1
But I don't understand how they reached to that point - I don't get the point where they had $\left[\frac{(1-r^n)}{(1-r)}\right]$ value.
becomes $a(1−r^n)/(1−r)$
Is there any specific formula that turns previous one to the next step?
– Minjae Jul 07 '15 at 03:48