1 | initial version |
You cannot make sums with symbolic bounds, or at least it does not work very often.
Rather do something like that:
sage: def mertens(n):
....: return sum(moebius(i) for i in range(1, n+1))
sage: mertens(6)
-1
sage: mertens(66)
-1
sage: mertens(691)
-9