I want to write some code that inverts Euler's totient, so solving the equation:
$$\varphi(n)=x$$
where $x$ is known.
Before reinventing the wheel, I googled around to see if there was already something, and I was quite amazed to find nothing. Maybe I was somehow naive - that's an option. Is there some well known algorithm performing this task? If not, is there a specific reason why?
Best,
K.
Another reason there is no discussion of an inverse of Euler's totient function is that it is not injective, therefore possesses no inverse. Here are all numbers $n \geq 1$ with $\phi(n) \leq 52,$ with $\phi(n)$ printed first on each line. Such a list is finite, as $$ \sqrt \frac{n}{2} \leq \phi(n) \leq n $$