It is a well known result that with $\tau(n) := \sum\_{d|n} 1$ that
$$\sum\_{n\le X}\tau(n)\sim X\log X,\\ \sum\_{n\le X}\tau(n)^2\sim C\_1X\log^3X$$
for some $C\_1 > 0$. In general, it is also known that for $k\ge 0$, 
$$\sum\_{n\le X} \tau(n)^k\ll X\log^{C(k)}X$$ (I think one can take $C(k) = 2^k - 1$). Are asymptotics known for these sums, or are there lower bounds that are sharp up to a constant factor for these sums?



Asymptotics for sums of powers of divisor function
Yes, these are standard things in analytic number theory. We have
$$ \sum\_{n=1}^\infty\frac{\tau(n)^k}{n^s}=\zeta(s)^{2^k}F\_k(s),\qquad\Re(s)>1,$$
where $F\_k(s)$ is an explicit Dirichlet series that converges absolutely for $\Re(s)>1/2$. The exponent $2^k$ is dictated by $\tau(p)^k=2^k$ for primes $p$. It follows, by applying an inverse Mellin transform, that
$$ \sum\_{n\leq x}\tau(n)^k=x P\_k(\log x)+O(x^{1-\delta\_k+\epsilon}),$$
where $P\_k(t)\in\mathbb{R}[t]$ is an explicit polynomial and $0<\delta\_k<1$ is also explicit. The polynomial can be read off from the [principal part](https://en.wikipedia.org/wiki/Principal_part#Laurent_series_definition) of the Laurent series of $\zeta(s)^{2^k}F\_k(s)$ at $s=1$, in particular $\deg P\_k=2^k-1$, because the order of the pole at $s=1$ is $2^k$. I think one can also treat complex powers of $\tau(n)$ by the Selberg-Delange method (but I have not carried out the details), see Chapter II. 5 in Tenenbaum: Introduction to analytic and probabilistic number theory.


Finally, a fun fact. It can be proved by elementary means that
$$ \sum\_{n\leq x}\tau(n)^k\leq x\left(\sum\_{n\leq x}\frac{1}{n}\right)^{2^k-1}.$$
Note that the harmonic series on the right is less than $1+\log x$. More generally,
$$ \sum\_{n\leq x}\tau\_{r\_1}(n)\dots\tau\_{r\_k}(n)\leq x\left(\sum\_{n\leq x}\frac{1}{n}\right)^{r\_1\dots r\_k-1}.$$
For the last sum, again, the fine asymptotic behaviour can be obtained by applying an inverse Mellin transform after comparing the relevant Dirichlet series with $\zeta(s)^{r\_1\dots r\_k}$.


