I've been thinking about the sum $$\sum_{n=1}^N \cos(t\log n)$$ for large $N$. If $t=0$ the case is obvious, but when $t\neq 0$ can this sum be bounded? I presume it diverges weaker than just $N$; probably something like $N^\epsilon$ for some $0<\epsilon<1$. Equivalently the sum $$\left|\sum_{n=1}^N e^{it \log n} \right|$$ could be considered. I've been thinking about Koksma, but not sure how to apply it here.
Any ideas?
Your guess is wrong. If it was right, then $t\log n$ would be equidistributed, according to Weyl's criterion, but it isn't.
See Show that $\{a \log n \}$ is not equidistributed for any $a$
Edit: on second reading, the question I posted doesn't have an answer and the connection is really not that obvious. So let's just prove it directly without reference to anything but basic calculus:
You can replace the sum by the integral
$$ \int_{1}^{N} \cos(t \log x) dx =\frac{1}{2} N (\cos \log N + \sin \log N) $$ with error $$ |\epsilon_N|\leq \sum^N |\cos'(\xi_n)| t/n $$ The integral grows like $N$ the error like $\log N$. This disproves your $N^{\epsilon}$ guess but falls just short of showing actual linear growth.