What is the technique of computing the following recurrence?
$$P(n) = n + nP(n-1)$$
(We assume $P(1) = 1$.)
It is obvious that the lower bound for $P(n)$ is $n!$, and the upper bound is $(n+1)!$, which is pretty good information already. I've been wondering, however, if it's possible to improve those bounds or solve the recurrence exactly.
I don't know of any exact solution, but a quick way to get a more precise bound would be to consider the ratio of $P(n)$ and $n!$. More precisely, define $$f(n)=\frac{P(n)}{n!}$$ and then note that it satisfies the recurrence relation $$f(n)=\frac{1}{(n-1)!}+f(n-1).$$ This can be somewhat advantageously rewritten as: $$f(n)=\sum_{i=0}^{n-1}\frac{1}{i!}$$ from where we can easily derive that $1\leq f(n)\leq \sum_{i=0}^{\infty}\frac{1}{i!}=e$ which yields the bound
$$n!\leq P(n) \leq e\cdot n!.$$ This is a reasonably tight bound (giving us the function within a constant factor), and, as we additionally have that $\lim_{n\rightarrow\infty}\frac{P(n)}{n!}=e$, gives us a very good idea of the growth rate of the function.
Actually, by considering the two expressions $$n!\left(\frac{1}{0!}+\frac{1}{1!}+\ldots +\frac{1}{(n-1)!}\right)$$ and $$n!\left(\frac{1}{0!}+\frac{1}{1!}+\ldots +\frac{1}{(n-1)!}+\frac{1}{n!}+\frac{1}{(n+1)!}+\ldots\right)=n!\cdot e$$ we find that the difference is $$\frac{n!}{n!} + \frac{n!}{(n+1)!}+\frac{n!}{(n+2)!}+\ldots$$ which is between $1$ and $2$ for $n\geq 1$. Thus, a closed form is as follows: $$P(n)=\lfloor e\cdot n!\rfloor - 1$$ where $\lfloor \cdot \rfloor$ is the floor function.