TITLE: Finding the common integer solutions to $a + b = c \cdot d$ and $a \cdot b = c + d$
QUESTION [14 upvotes]: I find nice that $$ 1+5=2 \cdot 3 \qquad 1 \cdot 5=2 + 3 .$$

Do you know if there are other integer solutions to
  $$ a+b=c \cdot d \quad \text{ and } \quad  a \cdot b=c+d$$
  besides the trivial solutions $a=b=c=d=0$ and $a=b=c=d=2$?

REPLY [6 votes]: First, note that if $(a, b, c, d)$ is a solution, so are $(a, b, d, c)$, $(c, d, a, b)$ and the five other reorderings these permutations generate.
We can quickly dispense with the case that all of $a, b, c, d$ are positive using an argument of @dREaM: If none of the numbers is $1$, we have
$ab \geq a + b = cd \geq c + d = ab$, so $ab = a + b$ and $cd = c + d$, and we may as well assume $a \geq b$ and $c \geq d$. In particular, since $a, b, c, d > 1$, we have $a b \geq 2a \geq a + b = ab$, so $a = b = 2$ and likewise $c = d = 2$, giving the solution $$(2, 2, 2, 2).$$ On the other hand, if at least one number is $1$, say, $a$, we have $b = c + d$ and $1 + b = cd$, so $1 + c + d = cd$, and we may as well assume $c \leq d$. Rearranging gives $(c - 1)(d - 1) = 2$, so the only solution is $c = 2, d = 3$, giving the solution
$$(1, 5, 2, 3).$$
Now suppose that at least one of $a, b, c, d$, say, $a$ is $0$. Then, we have $0 = c + d$ and $b = cd$, so $c = -d$ and $b = -d^2$. This gives the solutions $$A_s := (0, -s^2, -s, s), \qquad s \in \Bbb Z .$$
We are left with the case for which at least one of $a, b, c, d$, say, $a$, is negative, and none is $0$. Suppose first that none of the variables is $-1$. If $b < 0$, we must have $cd = a + b < 0$, and so we may assume $c > 0 > d$. On the other hand, $c + d = ab > 0$, and so (using a variation of the argument for the positive case) we have
$$ab = (-a)(-b) \geq (-a) + (-b) = -(a + b) = -cd \geq c > c + d = ab,$$ which is absurd. If $b > 0$, we have $c + d = ab < 0$, so at least one of $c, d$, say, $c$ is negative. Moreover, we have $cd = a + b$, so $d$ and $a + b$ have opposite signs. If $d < 0$, then since $c, d < 0$, we are, by exploiting the appropriate permutation, in the above case in which $a, b < 0$, so we may assume that $d > 0$, and hence that $a + b < 0$. Now,
$$ab \leq a + b = cd < c + d = ab,$$ which again is absurd, so there no solutions in this case. This leaves only the case in which at least one of $a, b, c, d$ is $-1$, say, $a$. Then, we have $-b = c + d$ and $-1 + b = cd$, so $-1 + (- c - d) = cd$. Rearranging gives $(c + 1)(d + 1) = 0$, so we may assume $c = -1$ giving (up to permtuation) the $1$-parameter family of solutions $$B_t := (-1, t, -1, 1 - t), \qquad t \in \Bbb Z,$$ I mentioned in my comment (this includes two solutions, $B_0$ and $B_1$, which are equivalent by a permutation, that include a zero entry). This exhausts all of the possibilities; in summary:

Any integer solution to the system
  $$\left\{\begin{array}{rcl}a + b \!\!\!\!& = & \!\!\!\! cd \\ ab \!\!\!\! & = & \!\!\!\! c + d \end{array}\right.$$
  is equal (up to the admissible permutations mentioned at the beginning of this answer) to exactly one of

$(1, 5, 2, 3)$
$(2, 2, 2, 2)$
$A_s := (0, -s^2, -s, s)$, $s \geq 0$, and
$B_t := (-1, t, -1, 1 - t)$, $t \geq 2$.


The restrictions on the parameters $s, t$ are consequences of the redundancy in the solutions we found: $A_{-s}$ is an admissible permutation of $A_s$, $B_{1 - t}$ an admissible permutation of $B_t$, and $B_1$ one of $A_1$.