Integer sum combinatorics problem

Click For Summary

Discussion Overview

The discussion revolves around a combinatorial problem involving the equation 2a + b + c + d = N, where N is a non-negative integer. Participants explore different methods to count the sets of non-negative integers (a, b, c, d) that satisfy this equation, examining both proposed solutions and numerical examples.

Discussion Character

  • Exploratory
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant proposes a case-by-case analysis for values of 2a, leading to a summation formula for the number of solutions.
  • Another participant challenges the proposed solution by providing a numerical count of solutions for N=3, suggesting a different total.
  • Some participants express uncertainty about the correctness of the original question and the provided answer, indicating potential errors in the source material.
  • A later reply introduces a general formula for counting solutions to the equation x1 + x2 + ... + xk = n, suggesting an alternative perspective on the problem.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the correctness of the initial proposed solution or the validity of the source material. Multiple competing views and methods for counting solutions are presented, and the discussion remains unresolved.

Contextual Notes

Some participants note discrepancies between their calculated values and those suggested by the original source, indicating potential limitations in the problem's formulation or assumptions made during analysis.

Who May Find This Useful

This discussion may be of interest to those studying combinatorics, particularly in the context of integer partitions and counting problems involving non-negative integers.

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.
 
Physics 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)
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 29 ·
Replies
29
Views
5K