GCD = 1

For a positive integer n > 2 , n>2, what can we say about the number of positive integers less than n n that are relatively prime to n n (that is, their GCD is 1)?

Hint: A useful property of the Greatest Common Divisor function is gcd ( a , b ) = gcd ( a , a b ) ; \gcd(a,b) = \gcd(a,a-b); e.g., gcd ( 10 , 8 ) = gcd ( 10 , 2 ) = 2. \gcd(10,8) = \gcd(10,2) = 2.

It is prime. It is a perfect square. It is odd. It is even.

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.

3 solutions

Eli Ross Staff
Oct 11, 2015

For any k k which is relatively prime to n , n, we have n k n-k also relatively prime to n . n. This means that the number of relatively prime numbers to n n that are less than n n must be even, since we can group them into ( k , n k k,n-k ) pairs.

Remark: Of course, if k = n k , k=n-k, this wouldn't be a pair. But if k = n k , k=n-k, then n = 2 k n=2k but then k k would not be relatively prime to n . n. This is precisely why we must exclude n = 2. n=2.

In this way, we include n-1 and 1. Is 1 relatively prime to other numbers?

Mohamed Wafik - 5 years, 6 months ago

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

Alhussain Aly - 5 years, 6 months ago

I don't understand this problem.

Prasit Sarapee - 5 years, 3 months ago

I did not understand why we must exclude 2?

mohan nayak - 3 years, 11 months ago
John Wroblewski
Dec 19, 2016

We have that Euler's totient function, φ ( n ) \varphi(n) , calculates the number of numbers less than n which are coprime to n n . We have the property that if n = p k n = p^k for some prime p, then φ ( n ) = φ ( p k ) = p k p k 1 \varphi(n) = \varphi(p^k) = p^k - p^{k - 1} . As we have here, let k = 1 k = 1 . Then we get that the answer will take the form p 1 p - 1 . Since for n > 2 n > 2 , p p must be an odd number. Thus p 1 p - 1 must be even.

Jacopo Piccione
Sep 29, 2018

The number of positive integers less than n n that are relative prime to n n is ϕ ( n ) \phi (n) , where ϕ : Z + Z + \phi : \mathbb{Z^+}\rightarrow\mathbb{Z^+} is Euler's Totient Function . It's known that

ϕ ( n ) = n ( 1 1 p 1 ) ( 1 1 p 2 ) ( 1 1 p k ) \phi(n)=n(1-\frac{1}{p_1})(1-\frac{1}{p_2})\cdots(1-\frac{1}{p_k}) where n = p 1 α 1 p 2 α 2 p k α k n=p_1^{\alpha_1}p_2^{\alpha_2}\cdots p_k^{\alpha_k} .

With some manipulations:

ϕ ( n ) = p 1 α 1 p 2 α 2 p k α k ( 1 1 p 1 ) ( 1 1 p 2 ) ( 1 1 p k ) \phi(n)=p_1^{\alpha_1}p_2^{\alpha_2}\cdots p_k^{\alpha_k} \cdot (1-\frac{1}{p_1})(1-\frac{1}{p_2})\cdots(1-\frac{1}{p_k})

ϕ ( n ) = p 1 α 1 ( 1 1 p 1 ) p 2 α 2 ( 1 1 p 2 ) p k α k ( 1 1 p k ) \phi(n)=p_1^{\alpha_1}(1-\frac{1}{p_1})p_2^{\alpha_2}(1-\frac{1}{p_2})\cdots p_k^{\alpha_k}(1-\frac{1}{p_k})

ϕ ( n ) = ( p 1 α 1 p 1 α 1 1 ) ( p 2 α 2 p 2 α 2 1 ) ( p k α k p k α k 1 ) \phi(n)=(p_1^{\alpha_1}-p_1^{\alpha_1-1})(p_2^{\alpha_2}-p_2^{\alpha_2-1})\cdots (p_k^{\alpha_k}-p_k^{\alpha_k-1})

Now, there are two options for n n :

  • If n 2 m n\neq 2^m , there exists at least an odd prime factor in his factorization, let it be p h p_h . Obviously, p h α h p_h^{\alpha_h} and p h α h 1 p_h^{\alpha_h-1} are odd too. Therefore p h α h p h α h 1 p_h^{\alpha_h}-p_h^{\alpha_h-1} is even: ϕ ( n ) \phi(n) has an even factor, so it's even.

  • If n = 2 m n=2^m , ϕ ( n ) = 2 m ( 1 1 2 ) = 2 m 1 \phi(n)=2^m(1-\frac{1}{2})=2^{m-1} , which is even (for m > 1 m>1 , or n > 2 n>2 , which is a hypothesis).

In conclusion, ϕ ( n ) \phi(n) is even n > 2 \forall n>2 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...