I need to find the number of solutions in positive integers to the following equation:
$$x_1 + x_2 + x_3 + x_4 = 19$$
where $x_2 \neq 2x_3$ and $x_1 \neq x_2$
I know to solve the cases like $x_1 \ge 2x_3$, but I don't understand how to do the jump from this inequality to the case where they're not equal.
Any hint or guide would be much appreciated!
A generating function approach. We start with the number of solutions of \begin{align*} &\color{blue}{x_1+x_2+x_3+x_4=19}\tag{1}\\ &\color{blue}{x_1,x_2,x_3,x_4\geq 1} \end{align*} We represent the solutions of a variable $x_j\geq 1, 1\leq j\leq 4$ as generating function for $x_j$ which is \begin{align*} z+z^2+z^3+\cdots=\frac{z}{1-z} \end{align*} Using the coefficient of operator $[z^n]$ to denote the coefficient of $z^n$ of a series, the number of solutions of (1) is \begin{align*} [z^{19}]\left(\frac{z}{1-z}\right)^4&=[z^{15}]\frac{1}{(1-z)^4}=\binom{-4}{15}(-1)^{15}\color{blue}{=816} \end{align*}
Condition $x_2\ne 2x_3$:
Condition $x_1\neq x_2$:
Conditions $x_2\ne 2x_3$ and $x_1\neq x_2$:
Combining (1) to (4) we find the number of wanted solutions is \begin{align*} \color{blue}{816-45-72+3=702} \end{align*}