This should be easy, but for some reason I'm struggling. The Chebyshev psi function is given as the sum from 0
to x
of the von Mangoldt function MangoldtLambda[x]
. I want to tabulate it. Ideally, I'd like to express the function using Sum
, but I can't find the right form. This doesn't work:
TableForm[
Table[With[{k = 10}, Sum[N[MangoldtLambda[x], 5], {x, 0, k}]],
{x, 0, 10}]]
This produces a series that makes no sense at all:
TableForm[
Table[With[{k = 10}, Sum[N[MangoldtLambda[x], 5], {k, 0, x}]],
{x, 0, 10}]]
Accumulate
doesn't work either:
TableForm[Table[Accumulate[N[MangoldtLambda[x], 5]], {x, 0, 10}]]
Clearly I'm suffering from a failure of imagination, but I'd appreciate help.