In honour of Euler

Consider the Euler's totient function ϕ ( n ) \phi(n) which is the number of integers from 1 to n n coprime to n n .

If n n is divisible by ϕ ( n ) , \phi(n), what is the product of all possible values of n ϕ ( n ) ? \frac{n}{\phi(n)}?


The answer is 6.

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

Relevant wiki: Euler's Totient Function

We can use a formula for ϕ ( n ) \phi (n) .

Suppose that the canonical factorization of n is:

n = i = 1 k p i α i n=\displaystyle\prod_{i=1}^{k}p_{i}^{\alpha_{i}}

Then

ϕ ( n ) = n i = 1 k ( 1 1 p i ) \phi(n) = n\displaystyle\prod_{i=1}^{k}\left(1-\frac{1}{p_{i}}\right)

Thus:

n ϕ ( n ) = 1 i = 1 k ( 1 1 p i ) = 1 i = 1 k ( p i 1 p i ) \frac{n}{\phi (n)}=\frac{1}{\displaystyle\prod_{i=1}^{k}\left(1-\frac{1}{p_{i}}\right)}=\frac{1}{\displaystyle\prod_{i=1}^{k}\left(\frac{p_{i}-1}{p_{i}}\right)}

n ϕ ( n ) = p 1 . p 2 . . . p k ( p 1 1 ) ( p 2 1 ) . . . ( p k 1 ) \frac{n}{\phi (n)}=\frac{p_{1}.p_{2}... p_{k}}{(p_{1}-1)(p_{2}-1)...(p_{k}-1)}

From this expression is easy to see that if two or more prime factors of n n are odd, then n ϕ ( n ) \frac{n}{\phi (n)} cannot be an integer because on the denominator of the fraction we would get two or more even numbers that together are a multiple of 4 that cannot be simplified with any prime number on the numerator. For similar reasons, the odd prime number cannot be larger than 3 and has to be multiplied by 2 on the numerator.

Therefore the only possible values for n ϕ ( n ) \frac{n}{\phi (n)} are: n ϕ ( n ) = 1 1 = 1 , n ϕ ( n ) = 2 ( 2 1 ) = 2 o r n ϕ ( n ) = 2.3 ( 2 1 ) ( 3 1 ) = 3 \frac{n}{\phi (n)}=\frac{1}{1}=1, \frac{n}{\phi (n)}=\frac{2}{(2-1)}=2\ or\, \frac{n}{\phi (n)}=\frac{2.3}{(2-1)(3-1)}=3

And the product of these three values is 1.2.3 = 6 1.2.3=6

I still can't figure this out. For any n=2^k, phi(n)=n/2, i.e., n/phi(n)=2. The overall product is infinity.

Andrey Zharkikh - 3 years, 8 months ago

Log in to reply

Yes it is true that there are infinite ways you can get n/phi(n)= 2, but the question is not to compute the product them, obviously that is infinite. What you need to do, is to find all possible integer values that n/phi(n) can be, in this case 1, 2 or 3. You can also get 3 in many different ways with n=2^k.3^r. but still we only care that 3 is a possible integer value that n/phi(n) can be. So we only take this numbers once to compute the final answer.

Carlos Andrés Betancourt Baca - 3 years, 8 months ago

Log in to reply

Oh, I see, thanks! Understanding the problem is my biggest problem...

Andrey Zharkikh - 3 years, 8 months ago
Mark Hennings
Sep 8, 2017

If n = 1 n=1 then ϕ ( n ) = 1 \phi(n) = 1 , and so n ϕ ( n ) = 1 \frac{n}{\phi(n)} = 1 . Suppose now that n 2 n \ge 2 , and write n = p 1 a ( 1 ) p 2 a ( 2 ) p N a ( N ) n \; = \; p_1^{a(1)}p_2^{a(2)} \cdots p_N^{a(N)} as a product of primes, where p 1 , p 2 , . . . , p N p_1,p_2,...,p_N are distinct primes and a ( 1 ) , a ( 2 ) , . . . , a ( N ) a(1),a(2),...,a(N) are positive integers. Then ϕ ( n ) = ( p 1 1 ) ( p 2 1 ) ( p N 1 ) p 1 a ( 1 ) 1 p 2 a ( 2 ) 1 p N a ( N ) 1 \phi(n) \; = \; (p_1 - 1)(p_2-1)\cdots(p_N-1) p_1^{a(1)-1}p_2^{a(2)-1} \cdots p_N^{a(N)-1} and hence we have that ( p 1 1 ) ( p 2 1 ) ( p N 1 ) (p_1-1)(p_2-1)\cdots(p_N-1) divides p 1 p 2 p N p_1p_2\cdots p_N . Since p 1 p 2 p N p_1p_2\cdots p_N can only have one factor of 2 2 at most, and since p 1 p-1 is even whenever p p is an odd prime, we deduce that n n can only have at most one odd prime factor.

  • If n n has no odd prime factor, then n = 2 a n = 2^a for some positive integer a a , so that ϕ ( n ) = 2 a 1 \phi(n) = 2^{a-1} , and so n ϕ ( n ) = 2 \frac{n}{\phi(n)} = 2 .
  • If n n has one odd prime factor p p , then since p 1 p-1 is an even factor of ϕ ( n ) \phi(n) , we deduce that n n is even, and hence n = 2 a p b n = 2^ap^b for some positive integers a , b a,b . But then we must have p 1 p-1 dividing 2 p 2p , and hence p 1 p-1 must divide 2 2 . This implies that p = 3 p=3 , and hence n ϕ ( n ) = 3 \frac{n}{\phi(n)} = 3 .

Thus the possible values of ϕ ( n ) n \frac{\phi(n)}{n} are 1 , 2 , 3 1,2,3 , and hence the product of the possible values is 6 \boxed{6} .

Yes, that's correct! Thank you!

Noel Lo - 3 years, 9 months ago
Madhur Agrawal
Sep 23, 2017

Guesswork solution: it won't grow forever. So it must be something like one. Nope. There must've been some edge cases. Include 2 and 3. Et voilà!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...