mattmns
- 1,121
- 5
Here is the question from the book:
------------
Determine all n for which \phi(n) = n -2.
------------
Now it seems that the only time this will work is for n = 4. However, I haven't any idea of how to prove (or justify) this. I have thought about working primes and composites, since we know \phi(p) = p-1 for all primes p.
Some things we know:
If (m,n)=1, then \phi(mn) = \phi(m)\phi(n).
If m=p_1^{a_1}p_2^{a_2}\cdots p_k^{a_k} is the prime factorization of m, then:
\phi(m) = \prod_{i=1}^k \left(1- \frac{1}{p_i}\right)
Any hints/ideas? Thanks!
------------
Determine all n for which \phi(n) = n -2.
------------
Now it seems that the only time this will work is for n = 4. However, I haven't any idea of how to prove (or justify) this. I have thought about working primes and composites, since we know \phi(p) = p-1 for all primes p.
Some things we know:
If (m,n)=1, then \phi(mn) = \phi(m)\phi(n).
If m=p_1^{a_1}p_2^{a_2}\cdots p_k^{a_k} is the prime factorization of m, then:
\phi(m) = \prod_{i=1}^k \left(1- \frac{1}{p_i}\right)
Any hints/ideas? Thanks!