TITLE: Find all the integer pairs $(x, y)$ which satisfy the equation $x^5-y^5=16xy$
QUESTION [10 upvotes]: I just came across the following question:

Find all the integer pairs $(x, y)$ which satisfy the equation $x^5-y^5=16xy$

I solved it as follows:
$x=y=0$ obvious solution. If $xy\neq0$, let $d=gcd(x, y)$ and we write $x=da$, $y=db$, $a, b\in \Bbb{Z}$ with $(a, b)=1$. Then, the given equation is:
$$d^3a^5-d^3b^5=16ab$$
So, by the above equation, $a$ divides $d^3b^5$ and hence $a$ divides $d^3$. Similarly $b$ divides $d^3$. Since $(a, b)=1$  we have that $ab$ divides $d^3$, so $d^3=abr$ with $r\in \Bbb{Z}$. Then the above equation becomes $abra^5-abrb^5=16ab$, so $r(a^5-b^5)=16$.
Hence, the difference $a^5-b^5$ must divide $16$. If $|(a^5-b^5)|\le2$ we have that $(x, y)=(-2, 2)$ is a solution. Otherwise $$|a^5-b^5|=|(x+1)^5-b^5|\ge |(x+1)^5-x^5|=|5x^4+10x^3+10x^2+5x+1|\ge31$$ which is impossible.
So only solutions are $(x, y)=(0, 0)$ or $(-2, 2)$.
I believe that this solution is not at all intuitive nor simple. Could you please post a more intuitive and simple solution where you are explaining your intuition on every step?

REPLY [2 votes]: The following is neither intuitive nor simple, but it does give a different approach to the proof.
If $xy\not=0$, let $p$ be an odd prime and write $x=p^ru$ and $y=p^sv$ with $p\not\mid uv$.  From $p^{5r}u^5-p^{5s}v^5=16uvp^{r+s}$, we see we cannot have $r=s\not=0$, so we either have $5r=r+s$ or $5s=r+s$. This means that we can write $x$ and $y$ in the form $x=2^aA^4B$ and $y=2^bAB^4$ with $A$ and $B$ relatively prime odd numbers. But we now have $2^{5a}A^{20}B^5-2^{5b}A^5B^{20}=2^{a+b+4}A^5B^5$, from which we obtain
$$2^{5a}A^{15}-2^{5b}B^{15}=2^{a+b+4}$$
so we must now have $a=b$ (since otherwise the left hand side factors into a power of $2$ times an odd number not equal to $1$), which implies $2^{5a}(A^{15}+B^{15})=2^{2a+4}$, or
$$2^{3a}(A^{15}-B^{15})=2^4$$
The only $15$th powers of odd numbers that differ by a small power of $2$ come from $A=1$ and $B=-1$, so the only solution with $xy\not=0$ is $x=-2$ and $y=2$.