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)
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
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...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...

Similar threads

Back
Top