The question is about the equation $$ x^y\equiv y^x \mod n$$ where $x,y\in \mathbb N_{\geq 2}$.
How can you find if the equation admit a solution in $\mathbb{Z}/n\mathbb{Z}$ for a given $n$?
The question is about the equation $$ x^y\equiv y^x \mod n$$ where $x,y\in \mathbb N_{\geq 2}$.
How can you find if the equation admit a solution in $\mathbb{Z}/n\mathbb{Z}$ for a given $n$?