Determine all positive integers $a$ for which the equation $$\left ( 1 + \frac {1} {x} \right ) \cdot \left ( 1 + \frac {1} {x+1} \right ) \cdots \left ( 1 + \frac {1} {x+a} \right ) = a - x $$ has at least one integer solution $x$.
For each such integer $a$, determine the corresponding solutions.
The terms of the product can be made into simple fractions as $$1+\frac{1}{x+k}=\frac{x+k+1}{x+k},$$ from which it is clear that the numerator of each term cancels against the denominator of the next term, so \begin{eqnarray*} a-x&=&\left ( 1 + \frac {1} {x} \right ) \cdot \left ( 1 + \frac {1} {x+1} \right ) \cdots \left ( 1 + \frac {1} {x+a} \right )\\ &=&\left (\frac {x+1} {x} \right ) \cdot \left ( \frac {x+2} {x+1} \right ) \cdots \left ( \frac {x+a+1} {x+a} \right )\\ &=&\frac{x+a+1}{x}. \end{eqnarray*} Then clearing the denominator and rearranging shows that $x$ is a root of the quadratic $$X^2+(1-a)X+(1+a)=0,$$ which has an integral root if and only if its discriminant is a perfect square, which is $$\Delta=(1-a)^2-4(1+a)=a^2-6a-3=(a-3)^2-12.$$ Of course if $a$ is too large then $(a-3)^2-12$ cannot be a perfect square; if $a>9$ then $$(a-3)^2>\Delta=(a-3)^2-12=a^2-6a-3>a^2-8a+16=(a-4)^2,$$ and so $a\leq9$. It is then a quick check to find that only $a=7$ works, corresponding to $x=2$ and $x=4$.