Perhaps I should have included the word "bug" in my question. Here we go
There is a bug in this Limit
Limit[3^s (-1 - 2^-s + Zeta[s]), s -> ∞]
(* 0 *)
which should be 1.
But I withdraw herewith (16 July, 2015) my former statement (8 July, 2015) that there is a bug in a specific Series[].
More elaboration below.
Trying to calculate coefficients of a Dirichlet series $f(s)=\sum _{n=1}^{\infty } a( n) n^{-s}$ using Limit[]
reveals a strange behaviour of Mathematica 10.1
Here's a simple example.
Let
f[s_]:=Zeta[s]
and
b[n_, s_] := n^s (f[s] - Sum[1/k^s, {k, 1, n - 1}])
then we would expect to get the first four Dirichlet coefficients from
{Limit[Zeta[s], s -> ∞],
Limit[2^s (-1 + Zeta[s]), s -> ∞],
Limit[3^s (-1 - 2^-s + Zeta[s]), s -> ∞],
Limit[4^s (Zeta[s] - 1 - 2^-s - 3^-s), s -> ∞]}
But the output is
(*
{1, 1, 0, -∞}
*)
The first two limits are ok, the third and fourth limits are wrong, as they must be 1 as well.
On the other hand, plotting b[n,s] shows that the limits are 1.
What's going on here?
Remark:
The standard procedure to calculate the Dirichlet coeffients of a given function f(s) employs this formula
a[n_]:= n^σ Limit[(1/(2 T)
Integrate[f[σ + I t] n^(I t), {t, -T, T}]),
T -> ∞]
For details see https://mathoverflow.net/questions/30975/dirichlet-series-expansion-of-an-analytic-function
But I wanted to take a seemingly simpler approach.
Expansion of Dirichlet series with the function Series[]
It is interesting to study the expansion of a Dirichlet series with the function Series[], and especially about the point about s = ∞
. I shall confine the explication here to the case of the famous Riemann zeta function.
The documentation of Series[] points out as an issue:
Some functions cannot be decomposed into series of power-like functions:
Series[Zeta[s], {s, \[Infinity], 10}]
(*
Out[26]= 1 + 2^-s + 3^-s + 4^-s + 5^-s + 6^-s + 7^-s + 8^-s + 9^-s + 10^-s
*)
Now consider this limit for various numbers n of expansion terms
Table[{n, Limit[Series[2^s (Zeta[s] - 1), {s, \[Infinity], n}] // Normal,
s -> \[Infinity]]}, {n, 0, 3}]
(*
Out[36]= {{0, 0}, {1, 0}, {2, 1}, {3, 1}}
*)
That is, if we wish to collect terms up to s^k we need to Series[] expand up to ar least k. Sorry for pointing out "trivialities", but we are not dealing with well known power series here.
The next example show the importance of this rule more drastically
Table[{n, Limit[
Series[3^s (Zeta[s] - 1 - 2^-s), {s, \[Infinity], n}] // Normal,
s -> \[Infinity]]}, {n, 0, 5}]
(*
Out[38]= {{0, -\[Infinity]}, {1, -\[Infinity]}, {2, 0}, {3, 1}, {4, 1}, {5, 1}}
*)