Integer sum combinatorics problem

AI Thread Summary
The discussion centers on finding the number of sets of non-negative integers (a, b, c, d) that satisfy the equation 2a + b + c + d = N. The proposed solution breaks down the problem into cases based on the value of 2a, leading to a summation formula. However, the expected answer is 2^(N+1) - 1, which does not align with the derived formula. The conversation also highlights discrepancies in the original question's source, suggesting that the provided values for small N may be incorrect. The forum participants agree on the need for further verification of the calculations and the original problem's validity.
henpen
Messages
50
Reaction score
0
Question:
Given a non-negative integer N, show many sets of non-negative integers (a,b,c,d) satisfy 2a+b+c+d=N

Proposed (and roadblocked) solution:

Case 1: 2a=0
Then there are \binom{N+2}{2} solutions (easy to prove).

Case 2: 2a=2
Then there are \binom{N+2-2}{2} solutions.

Case 3: 2a=4
Then there are \binom{N+2-4}{2} solutions.
...

Thus the answer should be \large \sum_{i=0}^{i=1+ \left \lfloor \frac{N}{2} \right \rfloor}\binom{N+2-2i}{2}

The answer I'm looking for is actually 2^{N+1}-1, and numerically my method doesn't check. Where have I gone wrong? I'm fairly confident my analysis for each case 1 was correct.
 
Mathematics news on Phys.org
2^{N+1}-1?

I count 13 solutions when N=3.

0 0 0 3
0 0 1 2
0 0 2 1
0 0 3 0
0 1 0 2
0 1 1 1
0 1 2 0
0 2 0 1
0 2 1 0
0 3 0 0
1 0 0 1
1 0 1 0
1 1 0 0
 
Starting with N=1, the values I get are 3, 7, 13, 22, 34, 50. I haven't checked your answer against these values-- I'll leave that up to you-- but it appears the answer given on the page you linked to is incorrect.
 
awkward said:
Starting with N=1, the values I get are 3, 7, 13, 22, 34, 50. I haven't checked your answer against these values-- I'll leave that up to you-- but it appears the answer given on the page you linked to is incorrect.

My formula agrees for those cases. Thanks for the help.
 
Maybe you're looking for the number of solutions to :

x1+x2+...+xk=n

for xi, n ≥ 0 , it is :

(n+k-1)C(k-1) , where aCb is "a choose b"

If you want all xi>0 , the number of solutions is (n-1)C(k-1)

( throw one ball in each box and then apply the first method)
 
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...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...

Similar threads

Back
Top