For how many positive integers , are there exactly integers from to that are coprime to ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The number of integers from 1 to n − 1 coprime to n is the Euler's totient function ϕ ( n ) . If n = p 1 k 1 ⋅ . . . ⋅ p s k s is the decomposition of n into a product of powers of distinct primes, then ϕ ( n ) = ( p 1 − 1 ) p 1 k 1 − 1 ⋅ . . . ⋅ ( p s − 1 ) p s k s − 1 = n ⋅ ( 1 − p 1 1 ) ⋅ . . . ⋅ ( 1 − p s 1 )
Suppose ϕ ( n ) = 1 3 2 = 1 1 ⋅ 1 2 . Then 1 1 ∤ n , otherwise 1 0 would have to divide 1 3 2 . Therefore, 1 1 divides p − 1 for some prime p ∣ n . Clearly, such p must be of the form 2 2 k + 1 , where 2 k divides 1 2 . Checking k = 1 , 2 , 3 , 4 , 6 , we get p = 2 3 , p = 6 7 , p = 8 9 ( 4 5 and 1 3 3 are not primes).
Case 1. n = 8 9 ⋅ m . Clearly, 8 9 ∤ m , so 1 3 2 = ϕ ( 8 9 ) ⋅ ϕ ( m ) , thus ϕ ( m ) = 2 . The only primes that could divide m are 2 and 3 . Further, if m = 2 a 3 b , then a ≤ 2 and b ≤ 1 . A simple check gives three possibilities: m = 3 , 4 , 6 .
Case 2. n = 6 7 ⋅ m . Clearly, 6 7 ∤ m , so 1 3 2 = ϕ ( 6 7 ) ⋅ ϕ ( m ) , thus ϕ ( m ) = 3 . This is impossible. In fact, no odd number greater than 1 can be ϕ ( m ) for any m : no odd prime can divide m , and if m = 2 a , ϕ ( m ) = 2 a − 1 .
Case 3. n = 2 3 ⋅ m . Clearly, 2 3 ∤ m , so 1 3 2 = ϕ ( 2 3 ) ⋅ ϕ ( m ) , thus ϕ ( m ) = 6 . The only primes p that can divide m are 2 , 3 , and 7 . If 7 ∣ m , then clearly m = 7 or m = 1 4 . Now suppose m = 2 a 3 b . The order of 3 in ϕ ( m ) is b − 1 , so b = 2 . Clearly, m = 9 or m = 1 8 .
So altogether we have 7 choices for n .