First, we prove that a,b are rational numbers.
Then we can find three integers a',b',n such that:
The hypotesis translates to

.
Now,

and we can suppose

. Therefore

.
Let d be the integer such that

. First, we suppose d>1.
We have

. We get

, but

, therefore

and

. (in this step we must remember that d>1).
Now we consider 2(d+1). We know that

. But

, then

and

. But

, then finally

.
But therefore, n=1 and a,b are integers.
If

, then

and

and

, as before. Then n=2 and a',b' are odd integers such that a'-b' is a multiple of 2 but not of 4. Let us take d such that

. Let us take a positive integer k such that

(this obviously exists).
But then

. We must find

factors 2 in this product. But if x,y are odd integers,

. And

by hypotesis, and

by hypotesis. Therefore we find exactly

factors 2 in this product, which is too low.
I hope it is correct!
I hope it is correct!