Message Boards Message Boards

0
|
3950 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

[?] Increment in multiple sum indices?

Posted 6 years ago

Hello, I am trying to write nested sums of the following form:

enter image description here

But i need the index j to run from 0 with an increment as follows:

enter image description here

any suggestions? Thanks

POSTED BY: Shahzeb Kamal
2 Replies
Posted 6 years ago

Thanks :) Solved!

POSTED BY: Shahzeb Kamal

You can use Fold:

With[{k = 2},
 Fold[Sum[#1, {Subscript[a, #2], 0, n}] &, Sum[a[i] x^i, {i, 0, n}], 
  Range[0, k]]]
POSTED BY: Gianluca Gorni
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