Re: closed form for T(n) = c^n + T(n-1)



T(0)=a
T(1)=ac + a
T(2)=ac^2 + ac + a
T(n)=ac^n + ac^(n-1) ... + a

This is sum of the geometric progression (a, ac, ac^2, ac^3, ac^n) for
n+1 terms.
This has the closed form (ac^n - a)/(c - 1)

.