Solving Constrained Sums of N Non-Negative Integers

  • Context: Graduate 
  • Thread starter Thread starter wdlang
  • Start date Start date
  • Tags Tags
    Sum
Click For Summary

Discussion Overview

The discussion revolves around the problem of finding the average value of the sum of squares of N non-negative integers constrained such that their total equals N. Participants explore various mathematical approaches, including recurrence relations and generating functions, while considering the implications of different distributions of the integers.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant suggests that the average value of the sum of squares is likely on the order of unity, O(1), particularly in the large N limit.
  • Another participant notes that the average value will depend on the distribution functions of the integers involved.
  • A proposed method involves defining M(k,n) as the number of ways to sum to k with n terms and S(k,n) as the sum of x_i^2 over all possible configurations, leading to recurrence relations for these quantities.
  • Some participants express confidence in finding the average of x_1^2 and suggest that the average of the sum of squares can be derived from this value multiplied by N.
  • There is a discussion about using generating functions to derive expressions for M(k,n), with one participant providing a specific formula involving combinatorial coefficients.
  • Concerns are raised about accessibility to resources for verifying combinatorial expressions, with some participants indicating they can prove convergence without finding a simple expression.

Areas of Agreement / Disagreement

Participants exhibit a mix of agreement on the approach to the problem, particularly regarding the use of recurrence relations and generating functions, but there remains uncertainty about the specific expressions and the implications of different distributions. No consensus is reached on the final average value or the exact form of M(k,n).

Contextual Notes

Some participants express limitations in accessing combinatorial resources, which may affect their ability to verify or derive certain expressions. The discussion also reflects varying levels of familiarity with the underlying combinatorial concepts.

wdlang
Messages
306
Reaction score
0
suppose i have N non-negative integers x_1, x_2, ,,, x_N

the constraint is that their summation is N

now for all the configurations, i.e., all the realizations of x_1, x_2, ,,, x_N

i want to find out the average value of

\sum_i x_i^2

i guess is on the order of unity, i.e., O(1).

i am concerned with the large N limit
 
Last edited:
Physics news on Phys.org
The average value will be somewhere between 1 and N. It depends on what sort of distribution functions the x_k have.
 
First few numbers are (1, 10/3, 60/10).

It could be solved via a recurrence relation by defining M(k,n) as the number of way of summing to k with n terms and S(k,n) as the sum of x_i^2 over all possible ways, so we have

[tex]M(k,n) = M(k,n-1) + ... + M(0,n-1)[/tex]
[tex]S(k,n) = 0 + S(k,n-1) + 1*M(k-1,n-1) + S(k-1,n-1) + ... + k^2*M(0,n-1) + S(0,n-1)[/tex]

with M(k,1)=1, S(k,1)=k^2, e.g. M(2,2)=3, S(2,2)=10, though I don't know the general solution - perhaps generating functions would help?
 
bpet said:
First few numbers are (1, 10/3, 60/10).

It could be solved via a recurrence relation by defining M(k,n) as the number of way of summing to k with n terms and S(k,n) as the sum of x_i^2 over all possible ways, so we have

[tex]M(k,n) = M(k,n-1) + ... + M(0,n-1)[/tex]
[tex]S(k,n) = 0 + S(k,n-1) + 1*M(k-1,n-1) + S(k-1,n-1) + ... + k^2*M(0,n-1) + S(0,n-1)[/tex]

with M(k,1)=1, S(k,1)=k^2, e.g. M(2,2)=3, S(2,2)=10, though I don't know the general solution - perhaps generating functions would help?

i can solve the problem already

it is actually simple

you just need to find the average value of x_1^2

then the average of the sum of the squares is N times of that

but the average of x_1^2 is simple to find, just a bit combination
 
Oh I see, then it reduces to

[tex]E[x_1^2] = \frac{1*M(n-1,n-1) + 2^2*M(n-2,n-1) + ... + n^2*M(0,n-1)}{M(n,n-1)+...+M(0,n-1)}[/tex]

Did you find an expression for M(k,n)?
 
bpet said:
Oh I see, then it reduces to

[tex]E[x_1^2] = \frac{1*M(n-1,n-1) + 2^2*M(n-2,n-1) + ... + n^2*M(0,n-1)}{M(n,n-1)+...+M(0,n-1)}[/tex]

Did you find an expression for M(k,n)?

it is simple

it is a standard result in combination theory
 
Sorry you've lost me - can you post the details or a link to it please?
 
bpet said:
Sorry you've lost me - can you post the details or a link to it please?

i bet you can find the expression of M in any combinational book
 
wdlang said:
i bet you can find the expression of M in any combinational book

I don't have easy access to a library so that's not much help. Regardless, using generating functions M(k,n) would be the coefficient of x^k in (1+x+x^2+...)^n = 1/(1-x)^n, provided k<=n, and the kth derivative of this expression is (n+k-1)!/(n-1)!(1-x)^(n+k) so M(k,n)=n+k-1Cn-1 and of course M(0,n-1)+...+M(n,n-1)=M(n,n). Did you find a simple expression for 1^2*M(n-1,n-1)+...+n^2*M(0,n-1) ?
 
  • #10
bpet said:
I don't have easy access to a library so that's not much help. Regardless, using generating functions M(k,n) would be the coefficient of x^k in (1+x+x^2+...)^n = 1/(1-x)^n, provided k<=n, and the kth derivative of this expression is (n+k-1)!/(n-1)!(1-x)^(n+k) so M(k,n)=n+k-1Cn-1 and of course M(0,n-1)+...+M(n,n-1)=M(n,n). Did you find a simple expression for 1^2*M(n-1,n-1)+...+n^2*M(0,n-1) ?

you got it

i do not find a simple expression of that but i can prove it is convergent, that is what i want
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 27 ·
Replies
27
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K