MHB Sum of Products of N Natural Numbers

  • Thread starter Thread starter mathworker
  • Start date Start date
  • Tags Tags
    Sum
Click For Summary
The discussion focuses on deriving a formula for the sum of products of all possible pairs from a set of n natural numbers. An example is provided with the set {1, 2, 3}, illustrating the calculation of the sum of products. The general formula for the sum, denoted as S_n, is established as S_n = (1/24)n(n+1)(n+2)(3n+1). The derivation involves using induction and analyzing the differences between consecutive sums, leading to a simplified expression. The conversation highlights the collaborative effort to reach the formula, with specific contributions acknowledged.
mathworker
Messages
110
Reaction score
0
If we are given with set of n natural numbers and asked to find the sum of all possible products of two number..
E.G:
{1,2,3} is given then ,
1*1+1*2+1*3+2*2+2*3+3*3=s
how to find the general formula of SUM for given n-tuple containing consecutive natural numbers not necessarily starts with 1 or at least first N natural numbers
 
Physics news on Phys.org
Re: sum of products of N

i tried with following approach ,
S=$$\sum n^2 + \sum n(n-1)...\sum n(n-(n-1))$$...
and tried finding sum by splitting terms but it gone wrong 'cause there are some negative terms which are meant to be ignored(Lipssealed)
 
Re: sum of products of N

mathworker said:
i tried with following approach ,
S=$$\sum n^2 + \sum n(n-1)...\sum n(n-(n-1))$$...
and tried finding sum by splitting terms but it gone wrong 'cause there are some negative terms which are meant to be ignored(Lipssealed)
You should be able to check that the formula for $S_n$ is $S_n = \frac1{24}n(n+1)(n+2)(3n+1)$. Prove this by induction, noting that to get from $S_n$ to $S_{n+1}$ you need to add the terms $(n+1)(1+2+\ldots+(n+1)).$
 
yeah i got from Opalgs idea,
$$Sn - S(n-1)=n(n(n+1))/2$$
$$S(n-1)-S(n-2)=(n-1)(n-1)n/2[/math]
and by canceling up to $$S_0$$
$$Sn = \sum n^2(n+1)/2$$
$$=n(n+1)(n+2)(3n+1)/24$$
thanks oplag...:D
 
There is a nice little variation of the problem. The host says, after you have chosen the door, that you can change your guess, but to sweeten the deal, he says you can choose the two other doors, if you wish. This proposition is a no brainer, however before you are quick enough to accept it, the host opens one of the two doors and it is empty. In this version you really want to change your pick, but at the same time ask yourself is the host impartial and does that change anything. The host...

Similar threads

  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
21
Views
3K
Replies
6
Views
2K
Replies
7
Views
3K
Replies
11
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
29
Views
4K