Suppose, a rational number $r$ is given.
How can I check whether there is a positive integer $n$ with $$\frac{n}{\phi(n)}=r$$ where $\phi(n)$ denotes the totient function ?
In particular, I need the answer for $r=\frac{(s+2)\cdot s}{s+1}$ with positive integer $s$ to find all solutions of $$\frac{1}{x}-\frac{1}{y}=\frac{1}{\phi(x+y)}$$ with $\phi(x+y)|y$. In this case the even $s\ge 2$ can be ruled out because we have $$\frac{n}{\phi(n)}=\frac{p_1}{p_1-1}\cdots \frac{p_n}{p_n-1}$$ where $p_1,\cdots ,p_n$ are the prime divisors of $n$ ($n=1$ gives $\frac{n}{\phi(n)}=1$) because the numerator cannot be divisible by $4$. I conjecture that $s=1$ and $s=3$ are the only cases with a solution.
If a solution exists, there are $n$ primes such that $$\frac{p_1}{p_1-1} \cdots \frac{p_n}{p_n-1} = \frac{a}{b}.$$ For ease of argument, have the primes $p_1 < \cdots < p_n$ and $\gcd(a,b)=1$.
Now there is a largest prime $p$ that divides $a$. Because $p_i -1 < p_n$ for all $i$, we must have $p=p_n$. Hence,
$$\frac{p_1}{p_1-1} \cdots \frac{p_{n-1}}{p_{n-1}-1} = \frac{a}{b} \cdot \frac{p_n-1}{p_n} = \frac{a'}{b'}$$ where $a'$ and $b'$ are in reduced form. Now it turns out that $a'$ has a largest prime divisor less than $p_n$. So we can repeat this process at most $\pi(p)$ times and obtain a solution or achieve an inconsistency.