given
d0=0
d1=5+3d0
d2=5+3d1
...
dn=5+3dn-1
how would I write the summation for this up to n?
given
d0=0
d1=5+3d0
d2=5+3d1
...
dn=5+3dn-1
how would I write the summation for this up to n?
Here's a more general problem and solution. Let f(x) = ax + b. (In your case x = 0, a = 3, and b = 5.) If you iterate f(x) n times, i.e. f(f(f...(x) ...)) with n f's, you get
a^n x + b(1 + a + a^2 + ... + a^(n-1))
The sum (1 + a + a^2 + ... + a^(n-1)) can be reduced to (a^n - 1) / (a - 1) if a != 1.