Ask Your Question
0

Easy (beginner) sum problem:"need a summation variable"?

asked 2012-02-26 16:05:55 +0100

pepe gravatar image

My native language is not english but I try my best to make you understand the problem. I'd like to: from k=1 to n+1 sum k^2

But when I try to solve it with sage, it gives me an error.

(k,n)=var('k,n') show(sum(k,k^2,1,n+1))

It has a problem with k^2. How to solve it?

Many thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-02-26 16:13:39 +0100

Daniel Krenn gravatar image
sage: var('k,n'); sum(k^2, k, 1, n+1)
(k, n)
1/3*n^3 + 3/2*n^2 + 13/6*n + 1
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: 2012-02-26 16:05:55 +0100

Seen: 2,820 times

Last updated: Feb 26 '12