How to find the closed form solution of this equation?
T(n) = 5T(n−1) + n^2, to T(1) = 7
How to find the closed form solution of this equation?
T(n) = 5T(n−1) + n^2, to T(1) = 7
Simply follow the substitution chain: $T(n) = 5T(n-1) + n^2 = 5^2T(n-2) + 5(n-1)^2 + n^2 = \dots$. After that, it should be straight-forward enough.