
Prove that there exist infinitely many pairs

of relatively prime positive integers such that
![\[\frac{a^{2}-5}{b}\;\; and\;\; \frac{b^{2}-5}{a}\]](//latex.artofproblemsolving.com/0/e/5/0e5968e21896d837db453ae26e5bfa7c1c035acb.png)
are both positive integers.

If true, then
, so their product

is also an integer. Hence, it suffices to show that there are infinitely many integers

for which
Consider the infinite sequence

defined by
,
, and
Now, let's quickly prove that

before moving into the main proof. Note that we have

and

so it is clear that

But modulo

the sequence

is periodic, with period

and so no term is divisible by

Hence

as desired.
Now, let us prove the following claim.

It is clearly true when

which we get

Suppose the proposition works for

where

i.e.
By definition,
. Adding

to both sides yields
![\[3a_{k+2}=3a_{k+1}+2a_{k+2}-a_k.\]](//latex.artofproblemsolving.com/3/0/e/30eb27d7ff926bd10d3b024afff95611fe74b61f.png)
Multiplying both sides by

yields
![\[3a_{k+1}a_{k+2}=3a_{k+1}^2+2a_{k+1}a_{k+2}-a_ka_{k+1}.\]](//latex.artofproblemsolving.com/5/7/7/57767e7e2f7b23060b6139802cb41a0e5167a2d1.png)
Adding 5 to both sides yields

By the induction hypothesis,
, thus

But we can also get

as follows.
By definition,
. Subtracting

from both sides, squaring, then adding

to both sides yields
![\[a_k^2+a_{k+1}^2=a_k^2+4a_{k+1}^2+2a_{k+1}a_{k+2}-4a_ka_{k+1}.\]](//latex.artofproblemsolving.com/9/5/4/95498982b6c1a0ba2a18e98111b64bdb4741c82a.png)
But this is just
, hence
![\[\boxed{a_k^2+a_{k+1}^2=3a_ka_{k+1}+5}\]](//latex.artofproblemsolving.com/0/d/d/0dd8c8cd3fa48cba7bd29778aa474278692f1549.png)
Well, then, let

Then,

But by the lemma,
![\[a_n^2+a_{n+1}^2=3a_na_{n+1}+5\iff a_n^2+a_{n+1}^2-(3a_na_{n+1}+5)=0.\]](//latex.artofproblemsolving.com/e/3/3/e3322847fe4bf66b2bd166a0575d04ce34b2963f.png)
Therefore,

Or, in other words,

generates infinitely many pairs

for which

and

so we're done.

This post has been edited 6 times. Last edited by henderson, Sep 11, 2016, 5:44 PM