This is a math competition problem for college students in Sichuan province, China. As the title, calculate the limit $$\lim_{s\to0^+}\sum_{n=1}^\infty\frac{\sin n}{n^s}.$$ It is clear that the Dirichlet series $\sum_{n=1}^\infty\frac{\sin n}{n^s}$ is convergent for all complex number $\Re s>0$. Here we only consider the case of real numbers.
Let $$A(x)=\sum_{n\leq x}\sin n,$$ then we have that $$A(x)=\frac{\cos\frac{1}{2}-\cos([x]+\frac{1}{2})}{2\sin\frac{1}{2}},$$ here $[x]$ is the floor function. Obviously, $A(x)$ is bounded and $|A(x)|\leq\frac{1}{\sin(1/2)}$. Using Abel's summation formula, we have that $$\sum_{n=1}^\infty\frac{\sin n}{n^s}=s\int_1^\infty\frac{A(x)}{x^{s+1}}\,dx =\frac{\cos\frac{1}{2}}{2\sin\frac{1}{2}}-s\int_1^\infty\frac{\cos([x]+\frac{1}{2})}{x^{s+1}}\,dx.$$
The integral $\int_1^\infty\frac{\cos([x]+\frac{1}{2})}{x^{s+1}}\,dx$ or $\int_1^\infty\frac{\cos([x])}{x^{s+1}}\,dx$ is also convergent for $s>-1$ (am I right? use Dirichlet's test)
My question: Is there an easy way to prove $$\lim_{s\to0^+}\int_1^\infty\frac{\cos([x])}{x^{s+1}}\,dx= \int_1^\infty\lim_{s\to0^+}\frac{\cos([x])}{x^{s+1}}\,dx= \int_1^\infty\frac{\cos([x])}{x}\,dx.$$ If the above conclusion is correct, we have that $$\lim_{s\to0^+}\sum_{n=1}^\infty\frac{\sin n}{n^s}=\frac{\cos\frac{1}{2}}{2\sin\frac{1}{2}}.$$
More generally, consider the Mellin tranform $g(s)=\int_1^\infty\frac{f(x)}{x^{s+1}}\,dx$, here $f(x)$ is continuous except integers and have left and right limit at integers.
If for $s=0$, the integral $\int_1^\infty\frac{f(x)}{x}\,dx$ is convergent, do we have that $$\lim_{s\to0^+}\int_1^\infty\frac{f(x)}{x^{s+1}}\,dx\stackrel{?}=\int_1^\infty\frac{f(x)}{x}\,dx\,$$(In Jameson's book The prime number theorem, page 124, there is a Ingham-Newman Tauberian thereom, but the conditions of the theorem there are slightly different from here.)
If the condition is strengthened to for all $s\geq-1/2$, $\int_1^\infty\frac{f(x)}{x^{s+1}}\,dx$ is convergent, is the following correct $$\lim_{s\to0^+}\int_1^\infty\frac{f(x)}{x^{s+1}}\,dx\stackrel{?}=\int_1^\infty\frac{f(x)}{x}\,dx\,$$ If this is correct, is there a simple way to prove it?
(2022/3/24/21:53) If the Dirichlet integral $\int_1^\infty\frac{f(x)}{x^s}dx$ converges at $s_0$, then it converges uniformly in $$|\arg(s-s_0)|\leq\alpha<\frac{\pi}{2}$$ for any fixed $0<\alpha<\frac{\pi}{2}$, and thus $$\lim_{s\to s_0^+}\int_1^\infty\frac{f(x)}{x^s}dx=\int_1^\infty\frac{f(x)}{x^{s_0}}dx.$$
For the uniform convergence of Dirichlet integral, see Uniform convergence about Dirichlet integral $f(s):=\int_1^\infty\frac{a(x)}{x^s}\,dx =\lim\limits_{T\to\infty}\int_1^T\frac{a(x)}{x^s}\,dx$
A Couple of Trigonometric Sums
First, we evaluate $$\newcommand{\Re}{\operatorname{Re}}\newcommand{\Im}{\operatorname{Im}} \begin{align} S_n &=\sum_{k=1}^n\sin(k)\tag{1a}\\ &=\Im\left(\frac{e^{i(n+1)}-1}{e^i-1}\right)\tag{1b}\\ &=\Im\left(e^{in/2}\right)\frac{\sin\left(\frac{n+1}2\right)}{\sin\left(\frac12\right)}\tag{1c}\\ &=\sin\left(\frac n2\right)\frac{\sin\left(\frac{n+1}2\right)}{\sin\left(\frac12\right)}\tag{1d}\\ &=\frac{\cos\left(\frac12\right)-\cos\left(n+\frac12\right)}{2\sin\left(\frac12\right)}\tag{1e} \end{align} $$ Explanation:
$\text{(1a)}$: definition
$\text{(1b)}$: apply Euler's Formula
$\phantom{\text{(1b):}}$ and the Formula for the Sum of a Geometric Series
$\text{(1c)}$: $\sin(x)=\frac{e^{ix}-e^{-ix}}{2i}$
$\text{(1d)}$: apply Euler's Formula
$\text{(1e)}$: $\sin(x)\sin(y)=\frac{\cos(x-y)-\cos(x+y)}2$
Similarly, $$ \begin{align} C_n &=\sum_{k=1}^n\cos\left(k+\frac12\right)\tag{2a}\\ &=\Re\left(\frac{e^{i(n+3/2)}-e^{i3/2}}{e^i-1}\right)\tag{2b}\\ &=\Re\left(e^{i(n+3)/2}\right)\frac{\sin\left(\frac{n}2\right)}{\sin\left(\frac12\right)}\tag{2c}\\ &=\cos\left(\frac{n+3}2\right)\frac{\sin\left(\frac{n}2\right)}{\sin\left(\frac12\right)}\tag{2d}\\ &=\frac{\sin\left(n+\frac32\right)-\sin\left(\frac32\right)}{2\sin\left(\frac12\right)}\tag{2e} \end{align} $$ Explanation:
$\text{(2a)}$: definition
$\text{(2b)}$: apply Euler's Formula
$\phantom{\text{(2b):}}$ and the Formula for the Sum of a Geometric Series
$\text{(2c)}$: $\sin(x)=\frac{e^{ix}-e^{-ix}}{2i}$
$\text{(2d)}$: apply Euler's Formula
$\text{(2e)}$: $\sin(x)\cos(y)=\frac{\sin(x+y)+\sin(x-y)}2$
Estimating the Sum
Therefore, $$ \begin{align} \sum_{k=1}^\infty\frac{\sin(k)}{k^s} &=\sum_{k=1}^\infty\frac{S_k-S_{k-1}}{k^s}\tag{3a}\\ &=\sum_{k=1}^\infty S_k\left(\frac1{k^s}-\frac1{(k+1)^s}\right)\tag{3b}\\ &=\frac12\cot\left(\frac12\right)-\frac12\csc\left(\frac12\right)\sum_{k=1}^\infty\cos\left(k+\frac12\right)\left(\frac1{k^s}-\frac1{(k+1)^s}\right)\tag{3c}\\ &=\frac12\cot\left(\frac12\right)+O(s)\tag{3d} \end{align} $$ Explanation:
$\text{(3a)}$: $\sin(k)=S_k-S_{k-1}$
$\text{(3b)}$: Summation by Parts
$\text{(3c)}$: apply $(1)$ and $\sum\limits_{k=1}^\infty\left(\frac1{k^s}-\frac1{(k+1)^s}\right)=1$
$\text{(3d)}$: $\frac1{k^s}-\frac1{(k+1)^s}$ is monotonic decreasing and $1-\frac1{2^s}\le s$
$\phantom{\text{(3d):}}$ $(2)$ says that $\sup\limits_{n\ge0}\left|\sum\limits_{k=1}^n\cos\left(k+\frac12\right)\right|\le\csc\left(\frac12\right)$
$\phantom{\text{(3d):}}$ Dirichlet says $\left|\sum\limits_{k=1}^\infty\cos\left(k+\frac12\right)\left(\frac1{k^s}-\frac1{(k+1)^s}\right)\right|\le s\csc\left(\frac12\right)$
The Requested Result
Estimate $(3)$ yields $$ \bbox[5px,border:2px solid #C0A000]{\lim_{s\to0^+}\sum_{k=1}^\infty\frac{\sin(k)}{k^s}=\frac12\cot\left(\frac12\right)}\tag4 $$
Clarification
More than one comment has shown that the bound on the sum $$ \sum_{k=1}^\infty\cos\left(k+\frac12\right)\left(\frac1{k^s}-\frac1{(k+1)^s}\right)\tag5 $$ given in $\text{(3d)}$ requires clarification.
Using the Generalized Dirichlet Convergence Test, as presented in this answer, we will set $$ a_k=\cos\left(k+\frac12\right)\tag6 $$ and $$ b_k=\frac1{k^s}-\frac1{(k+1)^s}\tag7 $$ In $(2)$, it is shown that $$ \left|\,\sum_{k=1}^na_k\,\right|\le\csc\left(\frac12\right)\tag8 $$ Since $x^{-s}$ is convex, $$ \begin{align} &\overbrace{\left(\frac1{(k+1)^s}-\frac1{(k+2)^s}\right)}^{\large b_{k+1}}-\overbrace{\left(\frac1{k^s}-\frac1{(k+1)^s}\right)}^{\large b_k}\tag{9a}\\ &=2\left(\frac1{(k+1)^s}-\frac12\left(\frac1{k^s}+\frac1{(k+2)^s}\right)\right)\tag{9b}\\[4pt] &\le0\tag{9c} \end{align} $$ Explanation:
$\text{(9a)}$: definition of $b_k$
$\text{(9b)}$: combine terms
$\text{(9c)}$: $f\left(\frac{x+y}2\right)\le\frac{f(x)+f(y)}2$ for convex $f$
Thus, $b_k$ decreases monotonically to $0$. Therefore, the total variation of $b_k$ is $$ \begin{align} \sum_{k=1}^\infty|b_k-b_{k+1}| &=\sum_{k=1}^\infty(b_k-b_{k+1})\tag{10a}\\ &=b_1\tag{10b}\\[9pt] &=1-2^{-s}\tag{10c}\\[9pt] &=1-(1+1)^{-s}\tag{10d}\\[9pt] &\le1-(1-s)\tag{10e}\\[9pt] &=s\tag{10f} \end{align} $$ Explanation:
$\text{(10a)}$: $b_k$ is monotonically decreasing
$\text{(10b)}$: telescoping sum
$\text{(10c)}$: evaluate $b_1$
$\text{(10d)}$: $1+1=2$
$\text{(10e)}$: Bernoulli's Inequality
$\text{(10f)}$: simplify
Applying the Generalized Dirichlet Convergence Test to $(8)$ and $(10)$, we get $$ \left|\,\sum_{k=1}^\infty\cos\left(k+\frac12\right)\left(\frac1{k^s}-\frac1{(k+1)^s}\right)\,\right|\le s\csc\left(\frac12\right)\tag{11} $$