I have this homework problem assigned and I'm a little confused in solving it:
Find all solutions of $\phi(n)=16$ and $\phi(n)=24$ (where $\phi(n)$ is the Euler phi-function).
The hint that's provided says:
If $n=p_1^{k_1}p_2^{k_2}\cdots p_r^{k_r}$ satisfies $\phi(n)=k$, then $n=\frac{k}{\prod (p_i-1)}\prod p_i$. Thus the integers $d_i=p_i-1$ can be determined by the conditions (1) $d_i\mid k$, (2) $d_i+1$ is prime, and (3) $\frac{k}{\prod d_i}$ contains no prime factor not in $\prod p_i$.
I'm ok with proving the statements in the hint and I know how to get them, but I'm not sure how to apply them to solve the problem.
I'll make it for $k=16$.
Since $d_i$ divides $16$, it must be a power of two and $d_i+1$ is prime. Then $$d_i\in\{1,2,4,16\}$$ that is, $$p_i\in\{2,3,5,17\}$$ So the possible values for $n$ are $2^5$, $2^4\cdot3$, $2^3\cdot5$, $17$, $2\cdot17$ and $2^2\cdot3\cdot5$.
For $24$, start considering the divisors $d$ of $24$ such that $d+1$ is prime.