How to show individual summation terms when calculating sum with maxima or wxmaxima

492 Views Asked by At

I have a question about using maxima. Supposing I have the following sum:

sum (i^2, i, 0, n);

\[\sum_{i=0}^{n}{i}^{2}\]

and say I use it to sum up to 4:

sum (i^2, i, 0, 4);

= 61

If I want to list all the sum terms

1 + 4 + 9 + 16

how can I do this?