Solve the following equation of recurrence, specifying the upper asymptotic limit:
$\left\{\begin{matrix} T(1) = 1 \\ T(n) = n\cdot T(\frac{n}{2}) + 1 \end{matrix}\right.$
I'm trying the iterated method:
$T(\frac{n}{2}) = \frac{n}{2} \cdot T(\frac{n}{2^2}) + 1 \\ T(\frac{n}{2^2}) = \frac{n}{2^2} \cdot T(\frac{n}{2^3}) + 1 \\ T(\frac{n}{2^3}) = \frac{n}{2^3} \cdot T(\frac{n}{2^4}) + 1 \\ ...$
$\Rightarrow$
$T(n) = n \cdot \{ \frac{n}{2} \cdot [ \frac{n}{2^2} \cdot ( \frac{n}{2^3} \cdot T(\frac{n}{2^4})+1)+1] +1\}+1 \\ ...\\ = \frac{n^4}{2^6}\cdot T(\frac{n}{2^4})+\frac{n^3}{2^3}+\frac{n^2}{2}+n+1$
And then I'm stuck. I don't see any repetitive pattern. What I'm missing?
Let $n=2^k$, then \begin{align} T(2^k) = 2^k\cdot T(2^{k-1}) + 1&\implies T(2^k) = 2^k\cdot 2^{k-1}\cdot T(2^{k-2}) + 2^k + 1\\ &\implies T(2^k) = 2^{k(k+1)/2}\cdot T(2^{k-k}) + \mathcal{O}(2^{k(k+1)/2})\\ &\implies T(2^k) = 2^{k(k+1)/2}+ \mathcal{O}(2^{k(k+1)/2})\\ &\implies T(n) =\mathcal{O}(n^{(\log_2n+1)/2})\\ \end{align}