For which integers n is phi (n) = n/2 Please, help
phi (n) is an integer, hence n must be an even number to get n/2 = integer hence \(n = 2^a k\) where k is odd.
i think that goes 2^k numbers we can prove that
u are on the right track lol
\(\phi (n) = \phi (2^a) *\phi (k) = 2^{a-1}k\), then?
well if there is k odd then there is some odd integer lets say i<=k, such that gcd(i,n) is not 1
so k need to be even thus k=2h and again we would have another integer added to n/2 so we kinda reach k can be of the form 2^g only.
no way!! n is even, i < = k is odd, how (i, n ) is not 1?
k is not even, because if we set n = 2^a k, then k must be odd. (all even goes to 2^)
=) let n=6 gcd(6,3)=3 for example.
oh yeah, my stupidity. :)
nope its ok, i wanted u to see the contradiction to find out that k can be of the form 2^g or something.
so lets try to prove this shall we ? phi(n)=n/2 iff n=2^k
show me, please
<--- when n=2^k then for all even numbers 2m, gcd(2m,n) is not 1. (maybe 2 or 2^i for i<k), and we have from 1 to n, n/2 even numbers.
is it not that we need prove --> if n = 2^k, then phi (n) = n/2 <--, if phi (n) = n/2, then n=2^k
--->ph(n)=n/2 then n is even , let \( n= 2^{a_1}p_1^{a_2}p_2^{a_3}....\) so for all evens 2m gcd(2m, n) is not 1, means phi(n)>=n/2 as we have other prime factors for n but not 2, so the only case we have is when n have only prime factors of 2.
oh! @Loser66 do i make sense to u or i just confused u ?
I don't get why \(gcd (2m,n)\neq 1, ~then~~\phi(n)\geq n/2\)
ok so phi(n)=n/2 means n even right ?
yes
so for even numbers 2m from m=1 to m=n/2 gcd(2m,n) is not 1 (it can be 2 or 2i) right ?
oh sorry that inequality should be phi(n) <=n/2 pardon.
it's ok, got you
so now at most we have n/2 of numbers are relatively prime with n, assume n=2^ak and k is odd factor, then phi(n)<n/2.
ok
I got it, friend. Thank you so much:)
you are welcome <3
Join our real-time social learning platform and learn together with your friends!