Do we know which numbers can be written as another number to its own power? More precisely, if we have a number $x$, when can we write it as $n^n$ for some $n\in \mathbb{N}$?
For example, if $q$ is a prime at least $5$ and $x= (q(q^2-1))^{q^2}$, can we write $x=n^n$ for some $n\in \mathbb{N}$?
Intuition says that writing $n^n$ in its prime factorization, we have each of those primes divides the power by definition. Whereas with $x$, $q$ divides $q^2$ but $q^2-1$ does not divide it, does any of this make sense?