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



T(0) = a
T(n) = c^n + T(n-1)

<snip>

That doesn't seem right. I make it T(n) = 2^(n+1) - 2 + a for c = 2,
and T(n) = (c^(n+1)-1)/(c-1) - 1 + a in general

Perhaps you meant the recurrence relation to be T(n) = a*c^n + T(n-1) ?
In that case it's T(n) = a*(c^(n+1)-1)/(c-1)
which gives T(n) = a*(2^(n+1)-1) (same as your latest) for c = 2

Thanks, David. The recurrence T(n) = a*c^n + T(n-1) was what I had in
mind. Apologies for the multiple errors in the original post.

-Dan
.



Relevant Pages

  • Re: "Nuff Said"
    ... original post, how many of you believed what was written in the first ... changed your mind after reading the link from the second ... Could a third poster change your mind even again? ... What I'm really trying to say is Thank You...to the first contributor ...
    (soc.senior.issues)
  • Re: Harry Potter is a Symptom
    ... Beside, I've read some of the original post, and, frankly, I ... I made an honest attempt to figure it out and state it more simply. ... Hope you mind me replying to your post. ...
    (alt.fan.harry-potter)
  • Re: Too good of a mood
    ... Life is good. ... rereading your original post, I see that I have been mistaken in what I ... to my licensing board, Henry. ... In the mind of a psychopath, getting away with a lie is a win. ...
    (rec.skiing.alpine)
  • Re: Troubling Societal Aspect Of The VT Shootings
    ... intersted in making snarky comments or changing the meaning of my ... words in order to construct some bullshit strawman. ... This looks like one of those "It wasn't my fault" apologies. ... let's ignore any confrontational attitudes in your original post. ...
    (rec.sport.football.college)
  • Re: For UK Members: TV Opera Hell
    ... Truly my absolutely favorite type of obfuscation...so no apologies ... Sorry I missed the Dr. Phibes thingy...which is fine ... Already had midmorning anthrax on a doughnut...downed with Starbuck's ... original post, in which RMO's "wonderful crew" Brit contingent [copyright ...
    (rec.music.opera)