Sum of all possible products of elements taken from couples

  • Thread starter Thread starter Wentu
  • Start date Start date
  • Tags Tags
    Elements Sum
AI Thread Summary
The discussion focuses on calculating the sum of products from N couples of real numbers, where R elements must be chosen from the "b" values and N-R from the "a" values. An example is provided with couples (2,3), (5,7), and (11,13), where N is 3 and R is 2. The proposed method involves using the coefficient of x^R in the polynomial expansion of the product (a0 + xb0)(a1 + xb1)...(aN + xbN). It is suggested that writing a program may be necessary to compute this efficiently. The conversation highlights a mathematical approach to solving the problem rather than a straightforward calculation.
Wentu
Messages
14
Reaction score
2
Hello

I have N couples of real numbers higher than 1.
Let's call them like (a0,b0), (a1,b1),...,(aN,bN)
I have a number R <= N.

I need the sum of all the possible products of N elements, chosing one from each couple but exactly R times the "b" element and N-R times the "a" element.
Which is the best way to do it?

As an example:
(2,3), (5,7), (11,13)
N = 3, R = 2
I need 2x7x13 + 3x5x13 + 3x7x11

Thank you!
 
Mathematics news on Phys.org
As an expression I think what you want to do is:

\Sigma^{N}_{k=0} (a_{k}(\Sigma^{N}_{i=0} b_{i}))

I have no idea if there is any way to compute this other than just doing it.

EDIT: Nevermind, I see you don't want "sum of all possible products of N+1 elements" but sum of all possible products of a choice of R elements from the N+1 elements. No idea, you're probably going to have to write a program for that.
 
Last edited:
I got the answer from "Michael":
It is the coefficient of x^R in (a0+xb0)(a1+xb1)...(aN+xbN)
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...

Similar threads

Replies
7
Views
3K
Replies
14
Views
3K
Replies
12
Views
2K
Replies
12
Views
2K
2
Replies
80
Views
9K
Replies
4
Views
10K
Back
Top