Ask Your Question
0

create a sequence symbolically and then find a series based on this sequence

asked 2019-05-31 04:27:32 -0500

Tintin gravatar image

I would like to create an infinite sequence (a_o,a_1,a_2,...) symbolically and then find an infinite series sum(a_0+a_1z+a_2z+...) based on this sequence with the coefficients based n the initial symbolical sequence. After that I would like to manipulate this sequence further. I am rather new to Sagemath. How can this be done? Thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-05-31 07:50:05 -0500

tmonteil gravatar image

updated 2019-05-31 07:52:02 -0500

If you want a precise answer, you 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
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-05-31 04:27:32 -0500

Seen: 45 times

Last updated: May 31