Message Boards Message Boards

0
|
8365 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Summation of a Summation

Posted 8 years ago

Hello,

I am brand new to Mathematica. The below summation of a summation correctly displays the formula symbolically, but then provides an error. This formula appears to work in Wolfram Alpha. The question is, what am I doing incorrectly within Mathematica to obtain the same results?

Mathematica

Sum [Sum[ 1, {j = i + 1, n - 1}], {i = 0, n - 2}]

sum of sum

WolframAlpha

sum (sum 1, j=i+1 to n-1), i=0 to n-2

enter image description here

https://www.wolframalpha.com/input/?i=sum+%28sum+1%2C+j%3Di%2B1+to+n-1%29%2C+i%3D0+to+n-2

Attachments:
POSTED BY: Kevin Cloutier
4 Replies
Posted 8 years ago

In addition, have a look at the syntax (yellow at the top) of Sum https://reference.wolfram.com/language/ref/Sum.html

POSTED BY: Kevin Cloutier

Hi The code to be written is as follows with "," without "=" sign

Sum[Sum[1, {j, i + 1, n - 1}], {i, 0, n - 2}]
POSTED BY: jagannath debata

In addition, have a look at the syntax (yellow at the top) of Sum https://reference.wolfram.com/language/ref/Sum.html

POSTED BY: Sander Huisman
Posted 8 years ago

Thank you! For some reason I was receiving these via email, but not seeing the post here. It's not cache, as I tried multiple browsers. But no worries, thanks so much for the help and pointers. Exactly what I needed.

POSTED BY: Kevin Cloutier
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract