I have the following recurrence relation that I am trying to solve using the telescoping approach: $T(n) = \begin{cases} T(\frac{n}{4})+ n^2 & \text{for } n \geq 4 \\ 1 & \text{otherwise} \end{cases}$
I have this so far:
$T(n) = T(\frac{n}{4}) + n^2$
$T(\frac{n}{4}) = T(\frac{n}{16}) + (\frac{n^2}{16})$
$T(\frac{n}{16}) = T(\frac{n}{64}) + (\frac{n^2}{256}) $ ... up to $T(n) = 1$
I know I am supposed to now write $T(n)$ as a sum of these expansions but I dont seem to be doing it right. I have:
$T(n) = n^2 + (\frac{n}{4})^2 + (\frac{n}{16})^2 + (\frac{n}{64})^2$ and so on.
Sorry for the poor formatting of my question, I am new to Stack Exchange. Please give me suggestions on formatting so I can edit it.