EnterTheArena
New member
- Joined
- Feb 4, 2012
- Messages
- 4
I have a recurrence equation of the form T(n) = aT(n - 1) + bn where T(1) = 1. In trying to solve this equation, I have tried a top-down and bottom-up approach of "unrolling the equation" but found that I am still having trouble and am unable to solve.
When going from the bottom up, I get the following:
T(n)
T(1) = 1
T(2) = a + b2
T(3) = a^2 + ab2 + b3
T(4) = a^3 + a^2b2 + ab3 + b4
I'm not sure if I'm simplifying correctly as I sort of see a pattern but don't see how I'd write it in a general format. Any advice would be great. Thank you
When going from the bottom up, I get the following:
T(n)
T(1) = 1
T(2) = a + b2
T(3) = a^2 + ab2 + b3
T(4) = a^3 + a^2b2 + ab3 + b4
I'm not sure if I'm simplifying correctly as I sort of see a pattern but don't see how I'd write it in a general format. Any advice would be great. Thank you