In one of my calculations, I run the command:
Sum[(StirlingS2[k - 1, 4] + StirlingS2[k, 4])/6^k, {k, Infinity}]
Surprisingly, Mathematica
(run on Wolfram Cloud) does not want to perform this very simple summation, returning the definition of the command.
Even more surprisingly, the function starts returning numerical result if the argument of the first StirlingS2
is changed from k - 1
to k
, but it processes the summation still incredibly long (it is just a sum of eight geometric series!).
What is the reason for the problem?
ListPlot[Table[Sum[(StirlingS2[k-1,4]+StirlingS2[k,4])/6^k,{k,2,j}],{j,2,32}]]
strongly hints what the sum out to Infinity might be, unless you need some astonishing precision. Whether you start from 1 to j or 2 to j doesn't seem to make any obvious difference. So maybe the algorithm is fast for modest upper bounds and far slower for Infinite bounds. And maybe an infinite summation isn't as simple as you imagine it to be. $\endgroup$Sum[(StirlingS2[k, 4] + StirlingS2[k + 1, 4])/6^(k + 1), {k, 0, ∞}]
$\endgroup$