I need to find the closed form solution to the following recurrence -:
$ T(n) = 8*T(n/2) + 0.25*n^2$ with $T(1) = 1$ and $n=2^j$ and this is what I have tried so far but just can't seem to get a pattern out for this recurrence. Letting 0.25 to behave as a variable x, I have,
$T(n) = T(n/2) + n^2*x$
$T(2) = 8 + 2^2 * x $
$T(4) = 8*(8 + 2^2 * x) + 4^2 * x $
$T(8) = 8*(8*(8 + 2^2 * x) + 4^2 * x) + 8^2 * x $
I extracted the highest power of 8 from the above equation for T(8), to check if I can find a pattern but couldn't how can I possibly solve this recurrence?
Each $i$ with $1\le i\le j$ contributes $8^{j-i}(2^i)^2x$ to the value of $T(2^j)$, and we get $8^j$ for the base case. So we must have $$ T(2^j) = 8^j + \sum_{i=1}^j 8^{j-i}(2^i)^2 x = 8^j + \sum_{i=1}^j 4^j 2^{j-i} x = 8^j + 4^jx \sum_{k=0}^{j-1} 2^k = 8^j + 4^j(2^j-1)x$$ or, reinserting $n=2^j$, $$ T(n) = n^3 + n^2(n-1)x $$ when $n$ is a power of 2.