Ask Your Question

Revision history [back]

If you want a precise answer, you shoudl provide more details about your actual sequence. Otherwise, here is a generic example:

sage: var('n')
n
sage: a(n) = 1/n^2 + 1/n^3
sage: a
n |--> 1/n^2 + 1/n^3
sage: sum(a,n,1,infinity)
1/6*pi^2 + zeta(3)
sage: a(n) + a(n + 1)
1/(n + 1)^2 + 1/n^2 + 1/(n + 1)^3 + 1/n^3

If you want a precise answer, you shoudl should provide more details about your actual sequence. Otherwise, here is a generic example:

sage: var('n')
n
sage: a(n) = 1/n^2 + 1/n^3
sage: a
n |--> 1/n^2 + 1/n^3
sage: sum(a,n,1,infinity)
1/6*pi^2 + zeta(3)
sage: a(n) + a(n + 1)
1/(n + 1)^2 + 1/n^2 + 1/(n + 1)^3 + 1/n^3