Trouble with a double summation

  • Thread starter docnet
  • Start date
  • #1
docnet
587
242
Homework Statement:
verify the last equality
Relevant Equations:
verify the last equality
Screen Shot 2021-11-05 at 1.27.25 AM.png


the inner sum is just adding 1/365 n-i number of times. so ##\frac{(n-i)}{365}##

the outer sum adds over the index i, so I thought the expression is equal to ##\frac{(n-1)n-(n-1)!}{365}## but it's obviously not equal to that. where did I go wrong?
 

Answers and Replies

  • #2
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,042
15,745
Homework Statement:: verify the last equality
Relevant Equations:: verify the last equality

View attachment 291798

the inner sum is just adding 1/365 n-i number of times. so ##\frac{(n-i)}{365}##

the outer sum adds over the index i, so I thought the expression is equal to ##\frac{(n-1)n-(n-1)!}{365}## but it's obviously not equal to that. where did I go wrong?
If ##i = 1## there are ##n-1## terms, if ##i =2## there are ##n -2## terms etc. Hence there are ##1 +2 \dots + n -1## terms in total.

Do an example with ##n = 4## say, and write out the sum.
 
  • #3
docnet
587
242
Homework Statement:: verify the last equality
Relevant Equations:: verify the last equality

View attachment 291798

the inner sum is just adding 1/365 n-i number of times. so ##\frac{(n-i)}{365}##

the outer sum adds over the index i, so I thought the expression is equal to ##\frac{(n-1)n-(n-1)!}{365}## but it's obviously not equal to that. where did I go wrong?
If ##i = 1## there are ##n-1## terms, if ##i =2## there are ##n -2## terms etc. Hence there are ##1 +2 \dots + n -1## terms in total.

Do an example with ##n = 4## say, and write out the sum.
If ##n=4##, then the sum is

##1/365\cdot \sum^3_{i=1}\sum^4_{j=i+1}1=1/365\cdot (3+2+1)=\frac{6}{365}##.

check:
##\frac{n(n-1)}{2*365}=\frac{4(3)}{2*365}=\frac{6}{365}##

so I realized that I forgot the meaning of the factorial.. oope. I somehow thought it was n! = n+(n-1)+...+2+1 . oh lord.

following the same thought process suggested by @PeroK,

##1/365\cdot sum^{n-1}_{i=1}\sum^n_{j=i+1}1=\frac{(n-1)+(n-2)+...+2+1}{365}##

which is equivalent to ##\frac{n(n-1)}{2*365}## (although I don't know how to prove it, I can see that it is true geometrically.)
 
  • #4
anuttarasammyak
Gold Member
1,939
1,012
[tex]\sum_{i=1}^{n-1}\sum_{j=i+1}^{n}1=\sum_{i=1}^{n-1}(n-i)=n\sum_{i=1}^{n-1}1-\sum_{i=1}^{n-1}i=n(n-1)-\sum_{i=1}^{n-1}i[/tex]
Then
[tex]S:=\sum_{i=1}^{n-1}i=\sum_{i=1}^{n-1}(n-i)[/tex]
which means just changing order of addition
[tex]1+2+...+(n-1)=(n-1)+(n-2)+...+2+1[/tex]
adding RHS and LHS
[tex]2S=\sum_{i=1}^{n-1}n=n\sum_{i=1}^{n-1}1=n(n-1)[/tex]
This is equivalent to geometrical explanation.
 
  • Like
  • Informative
Likes SammyS and docnet
  • #5
docnet
587
242
[tex]S:=\sum_{i=1}^{n-1}i=\sum_{i=1}^{n-1}(n-i)[/tex]
This confused me at first, but it makes sense after thinking about it. Thank you so much.
 
  • Like
Likes anuttarasammyak

Suggested for: Trouble with a double summation

Replies
9
Views
442
Replies
17
Views
562
  • Last Post
Replies
8
Views
684
  • Last Post
Replies
7
Views
2K
Replies
9
Views
1K
Replies
10
Views
1K
Replies
14
Views
752
Replies
4
Views
547
Replies
7
Views
648
  • Last Post
Replies
5
Views
1K
Top