A problem from quora.
Find integers $x > 1, y > 1$ such that $(y^x+1) \mid (x^y+1)$.
I have found some infinite classes of solutions, but none with $x$ and $y$ relatively prime.
Here are the ones I have found so far. I know how I could construct more, but the algebra gets annoying.
$$(x, y) =(2n+1, (2n+1)^{2n+1}),\\ (2(2n+1), (2(2n+1))^2),\\ (3(2m+1), (3(2m+1))^3). $$
\begin{align*}\frac{x^y + 1}{y^x + 1}&=k\\\\ \text{Let}\qquad (x^y+1)&=ky^x+k \quad x,y,k>0\\ x^y-ky^x&=k-1 \end{align*}
We let
$\quad k=1\implies x^y\,-\,\,y^x=0\implies x=y$ $\quad k=2\implies x^y-2y^x=1\implies x=3,y=1$ $\quad k=3\implies x^y-3y^x=2\implies x=5,y=1$ $\quad k=4\implies x^y-4y^x=3\implies x=7,y=1$
We can see a pattern in this near trivial solution. If $\,y=1\,$ the denominator will be $\,2\,$ and any odd number $\,x\,$ will yield a solution.