I was testing out a few summation using my previous descriped methodes when i found an error in my reasoning. I'm really hoping someone could help me out.
The function which i was evaluating was $\sum_{n=1}^{\infty} n\ln(n)$ which turns out to be $-\zeta'(-1)$. This made me hope i could confirm my previous summation methode for divergent sums.
My divergent summtion methode (see previous questions) gives for every $d\geqslant2$: $$\sum_{n=1}^{\infty}f(dn)-f(n)=\sum_{n=1}^{\infty}\sum_{p=1}^{d-1} f(n)e^{ip\pi2n/d}$$ $$\sum_{k=0}^{\infty} \sum_{n=1}^{\infty}\sum_{p=1}^{d-1} -(d)^{2k} n\ln(d^kn)e^{2i\pi*pn/d}=\sum_{n=1}^{\infty} n \ln(n) \tag 1$$
Fill in $d=2$ cause that's the most easy, gives: $$\sum_{k=0}^{\infty} \sum_{n=1}^{\infty} -(2)^{2k}k n\ln(2)(-1)^n-(2)^{2k} n\ln(n)(-1)^n$$ $$\sum_{k=0}^{\infty} \sum_{n=1}^{\infty} -(4)^{k} n\ln(n)(-1)^n=\sum_{n=1}^{\infty} n\ln(n)/3(-1)^n \tag 2$$ $$\sum_{k=0}^{\infty} \sum_{n=1}^{\infty} -(2)^{2k}k n\ln(2)(-1)^n=\sum_{n=1}^{\infty} -\frac{4}{9}n\ln(2)(-1)^n= \frac{1}{9}\ln(2) \tag 3$$
equation (1)=(2)+(3) $$(\sum_{n=1}^{\infty} (-1)^n*n \ln(n)/3)+\ln(2)/9\approx 0.165421153 \tag 4$$
Now i work out $\lim_{m\to\infty} \sum_{n=1}^{m} n \ln(n)$ $$\sum_{n=1}^{m} n \ln(n)=m(m+1)\ln(m+1)/2-(m)(m+2)/4+\ln(m+1)/12+error \tag 5$$ It turns out the error is most likely $-1/6+~0.165421153$ so the value above. The fact i get an expression with the value found above is cool. Actualy i'm close but
$\textbf{[Question]}$ why the $-1/6$. Did i failed isolating a constant part in my approximation? And if so were did i fail to get it out.
Ps: since i guessed the formula, it would be nice if someone could confirm the fomula if correct (or false).
Using the Euler-Maclaurin Sum Formula, the asymptotic expansion of $\sum\limits_{k=1}^n\log(k)k^{-s}$ is $$ -\zeta'(s)+\frac{n^{1-s}\log(n)}{1-s}-\frac{n^{1-s}}{(1-s)^2}+\frac{\log(n)}{2n^s}-\frac{s\log(n)}{12n^{1+s}}+\frac{n^{-1-s}}{12}+O\!\left(\frac{\log(n)}{n^{3+s}}\right)\tag{1} $$ Setting $s=-1$ gives $$ \sum_{k=1}^n\log(k)k=-\zeta'(-1)+\frac{n^2\log(n)}{2}-\frac{n^2}4+\frac{n\log(n)}2+\frac{\log(n)}{12}+\frac1{12}+O\!\left(\frac1{n^2}\right)\tag{2} $$ According to $(1)$, the error term should be $O\!\left(\frac{\log(n)}{n^2}\right)$. However, if we compute two more terms at $s=-1$, we get that the error in $(2)$ is $\sim\frac1{720n^2}$.
In any case, the formula in equation $(5)$ from the question is $$ \frac{n^2\log(n)}2-\frac{n^2}4+\frac{n\log(n)}2+\frac{\log(n)}{12}+\frac14+O\!\left(\frac1{n^3}\right)\tag{3} $$ However, the correct constant term is $$ -\zeta'(-1)+\frac1{12}=0.248754477\tag{4} $$ which is close to $\frac14$, but not exact.