The following question searched for the solutions of
$$ y^x=x^{50} $$
User JCAA was able to reduce this to finding $s$ and $q$ as the solutions of
$$ \frac{s^q}{q} = \frac{50}{p} \quad\textrm{with}\ p\in\{1,2,5,10,25,50\}$$
The answers to these 6 equations are easy and can be done brute-force. But how does one go about it when you have an equation of the form:
$$ \frac{p^q}{q} = n $$
with $n$ a somewhat larger number like $n=4608$.
The only thing I could come up with is writing everything down in prime-factors:
$$ p = \prod{\pi_i^{a_i}}, \qquad q = \prod{\pi_i^{b_i}}, \qquad n = \prod{\pi_i^{c_i}}$$
And you can reduce the equation into:
$$ q a_i - b_i = c_i\qquad \forall i\in\mathbb{N}_0$$
Since $q>b_i$ $\forall i$, then you know that:
- If $c_i=0$ then $a_i=b_i=0$
- If $n$ is prime, $p=n$ and $q=1$ is the only solution
For all other cases, it seems you have to brute-force it.
Question: are there any standard methods in solving this, or is brute-force the only way?
Using Mathematica, I found the following brute-force solutions:
p q n
4608 1 4608
96 2 4608
24 3 4608