MHB Sum of Products of N Natural Numbers

  • Thread starter Thread starter mathworker
  • Start date Start date
  • Tags Tags
    Sum
AI Thread 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
 
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...
Back
Top