Message Boards Message Boards

1
|
2751 Views
|
3 Replies
|
5 Total Likes
View groups...
Share
Share this post:

How to use in Wolfram Mathematica 13.1 three dots "..."?

Posted 1 year ago

How to use in Wolfram Mathematica 13.1 three dots "..."?
Especially in the case when I need to use infinite sums.

POSTED BY: Zuzana Soltysova
3 Replies

Hi,

There are two possible different questions here: how to perform this type of computation and how to typeset this type of computation. The first question is easy and it is what I'll address here. There is no built-in help to typeset this type of expression, but if this is what you are looking for, ask again and we'll look for something.

I suspect there is something wrong in the given expression. First, the i0 index starts at 1 and ends at 0. Can you check that? Then the i1 index is repeated. Then the ik index ends at Floor[n/n], while I would expect it to end at Floor[n/k], if I'm understanding correctly what the expression is. Assuming I'm correcting appropriately all those issues, you could do something like this:

MultiSum[summand_, is_, multis_] := Sum@@ {summand, Splice@Table[multis, is]}

sum[k_, n_] := Block[{i, a}, 
    MultiSum[
        Sum[5 i[a], {a, 0, k}],
        {a, 0, k},
        {i[a], 0, If[a == 0, 1, Floor[n/a]]}
    ]
]

Then you can compute

In[3]:= sum[0, n]
Out[3]= 5

In[4]:= sum[1, n]
Out[4]= 5/2 Floor[n] (1 + Floor[n]) + 5/2 (1 + Floor[n]) (2 + Floor[n])

In[5]:= sum[2, n]
Out[5]= 5/2 (1 + Floor[n/2]) (1 + Floor[n]) (Floor[n/2] + Floor[n]) + 5/2 (1 + Floor[n/2]) (1 + Floor[n]) (2 + Floor[n/2] + Floor[n])

In[8]:= Table[sum[k, 10], {k, 0, 15}]
Out[8]= {5, 605, 5280, 25080, 83160, 273240, 570240, 1188000, 2471040, 5132160, 10644480, 10644480, 10644480, 10644480, 10644480, 10644480}

enter image description here

I need to solve this problem: enter image description here

I do not know how to apply "..." in W. Mathematica

POSTED BY: Zuzana Soltysova
Posted 1 year ago

This is not a well-posed question.

  • Have you read the documentation? You can just type "..." into the help tool and find out how to use "..." (aka RepeatedNull)
  • What problem around infiinite sums are you struggling with? We can't read your mind.
  • What code have you tried?
POSTED BY: Eric Rimbey
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