How many natural solutions to $x_1 + x_2 + x_3 + x_4 + x_5 + x_6 = 24$ if $x_1 + x_2 + x_3 > x_4 + x_5 + x_6$?

684 Views Asked by At

Here's a problem in my combinatorics textbook:

Find how many solutions exist to the following equation over the natural numbers

$$x_1 + x_2 + x_3 + x_4 + x_5 + x_6 = 24$$

if

$$x_1 + x_2 + x_3 > x_4 + x_5 + x_6$$

I think that the problem can be solved with a generating function. First because $x_1+x_2+x_3>x_4+x_5+x_6$ then we can deduce that $x_1+x_2+x_3=x_4+x_5+x_6+y$ where $y\ge1$ because by problem definition we're dealing with natural numbers. Thus we get the following: $2x_4+2x_5+2x_6+y=24$ which translates into the following function: $$(1+x^2+x^4+...)^3(x+x^2+x^3+...)=(1+x^2+x^4+...)^3x(1+x+x^2+x^3+...)=$$ $$=\frac{1}{(1-x^2)^3}*\frac{1}{1-x}$$ now we need to find the coefficient of $x^{23}$. Is the correct solution so far and if yes is there any closed form of the generating function or any other tip to find the coefficient or I should just open the brackets by brute force?

1

There are 1 best solutions below

9
On BEST ANSWER

This problem has a nice symmetry.

Total number of solutions without restriction: $\binom {29} 5=118755$.

Number of solutions with $x_1+x_2+x_3 = x_4+x_5+x_6$ : $\binom {14} 2^2=91^2=8281$.

Number of solutions with $x_1+x_2+x_3 > x_4+ x_5 + x_6$ : $\frac {118755-8281}2=55237$.

This counting is based on the following analysis: Define $$ S=\{(x_1,\ldots, x_6): x_i\textrm{'s are natural }, x_1+ \cdots + x_6 = 24\}. $$ Also, define $$ A=\{ (x_1,\ldots, x_6) \in S: x_1+x_2+x_3 > x_4+x_5+x_6\}, $$ and

$$ B=\{(x_1,\ldots, x_6) \in S : x_1+x_2+x_3 < x_4+x_5+x_6\} $$ Then $A$ and $B$ are bijective via changing the role of $x_1$, $x_2$, $x_3$ by $x_4$, $x_5$, $x_6$.

Define $$ C=\{(x_1,\ldots, x_6) \in S: x_1+x_2+x_3=x_4+x_5+x_6\}. $$ Then we have $S=A\cup B\cup C$. Since $A$ and $B$ are bijective, they have the same cardinality, i.e. $|A|=|B|$. To solve for $|A|$, we use $$ |A|=\frac{|S|-|C|}2. $$