It's easy to see that this equation always has a solution:
$$a=n+2,\quad b=2$$
Because it can be rewritten:
$$a=\frac{b+n}{b-1} \tag{1}$$
Moreover, for even $n$ there are no more nontrivial solutions, obviously, because we would have a ratio of odd to even or even to odd. (Never mind, that's not true, of course, even numbers can divide odd. However, there are other reasons for trouble with even $n$.)
I need to find solutions with minimal $a-b$, but $a \neq b$ for odd values of $n$. Is there a general formula or at least an algorithm?
Since $a$ and $b$ are interchangeable, assume $a >b$.