For a positive integer n > 2 , what can we say about the number of positive integers less than n that are relatively prime to n (that is, their GCD is 1)?
Hint: A useful property of the Greatest Common Divisor function is g cd ( a , b ) = g cd ( a , a − b ) ; e.g., g cd ( 1 0 , 8 ) = g cd ( 1 0 , 2 ) = 2 .
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.
In this way, we include n-1 and 1. Is 1 relatively prime to other numbers?
Log in to reply
Yes, 1 is relatively prime to the other numbers. For x>0, 1 is relatively prime to x since GCD(1, x) = 1
I don't understand this problem.
I did not understand why we must exclude 2?
We have that Euler's totient function, φ ( n ) , calculates the number of numbers less than n which are coprime to n . We have the property that if n = p k for some prime p, then φ ( n ) = φ ( p k ) = p k − p k − 1 . As we have here, let k = 1 . Then we get that the answer will take the form p − 1 . Since for n > 2 , p must be an odd number. Thus p − 1 must be even.
The number of positive integers less than n that are relative prime to n is ϕ ( n ) , where ϕ : Z + → Z + is Euler's Totient Function . It's known that
ϕ ( n ) = n ( 1 − p 1 1 ) ( 1 − p 2 1 ) ⋯ ( 1 − p k 1 ) where n = p 1 α 1 p 2 α 2 ⋯ p k α k .
With some manipulations:
ϕ ( n ) = p 1 α 1 p 2 α 2 ⋯ p k α k ⋅ ( 1 − p 1 1 ) ( 1 − p 2 1 ) ⋯ ( 1 − p k 1 )
ϕ ( n ) = p 1 α 1 ( 1 − p 1 1 ) p 2 α 2 ( 1 − p 2 1 ) ⋯ p k α k ( 1 − p k 1 )
ϕ ( n ) = ( p 1 α 1 − p 1 α 1 − 1 ) ( p 2 α 2 − p 2 α 2 − 1 ) ⋯ ( p k α k − p k α k − 1 )
Now, there are two options for n :
If n = 2 m , there exists at least an odd prime factor in his factorization, let it be p h . Obviously, p h α h and p h α h − 1 are odd too. Therefore p h α h − p h α h − 1 is even: ϕ ( n ) has an even factor, so it's even.
If n = 2 m , ϕ ( n ) = 2 m ( 1 − 2 1 ) = 2 m − 1 , which is even (for m > 1 , or n > 2 , which is a hypothesis).
In conclusion, ϕ ( n ) is even ∀ n > 2 .
Problem Loading...
Note Loading...
Set Loading...
For any k which is relatively prime to n , we have n − k also relatively prime to n . This means that the number of relatively prime numbers to n that are less than n must be even, since we can group them into ( k , n − k ) pairs.
Remark: Of course, if k = n − k , this wouldn't be a pair. But if k = n − k , then n = 2 k but then k would not be relatively prime to n . This is precisely why we must exclude n = 2 .