Why is phi(n) always an even number?

  • Context: Undergrad 
  • Thread starter Thread starter crypto_rsa
  • Start date Start date
  • Tags Tags
    even
Click For Summary

Discussion Overview

The discussion centers around the question of why the Euler's totient function, denoted as phi(n), is always an even number for integers n greater than 2. Participants explore various arguments and reasoning related to the properties of the totient function, including its definition and implications in different cases.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant expresses confusion about the statement that phi(n) being even "follows immediately from the definition," noting that while it holds for n = pk (where p is prime), the general case is unclear.
  • Another participant agrees that phi(n) is even for any n > 2 but questions the immediate derivation from the definition.
  • A proposed argument suggests that for each integer m that is relatively prime to n, there exists a distinct integer n - m that is also relatively prime to n, leading to the conclusion that phi(n) is even.
  • Another participant offers a proof based on the definition, stating that if x is prime to n, then n - x is also prime to n, and that these pairs lead to an even count of integers that are prime to n, with a special case for x = n/2 being addressed.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the immediate derivation of phi(n) being even from its definition, with multiple viewpoints and arguments presented. The discussion remains unresolved regarding the clarity of the initial assertion.

Contextual Notes

Some arguments depend on the properties of integers and their relationships with n, and there are assumptions about the nature of n (e.g., n > 2). The proofs presented rely on specific cases and conditions that may not cover all scenarios.

crypto_rsa
Messages
4
Reaction score
0
I know it's a dumb question but I can't figure out why the totient of n is always even (I've read in a book that it "follows immediately from the definition of the totient function", so it should not require any theorem to prove). It is clear to me that it holds true for

n = pk, where p is a prime, because
phi(pk) = pk - 1(p - 1) and (p - 1) is even

But why is it true in the general case? I think I could use multiplicativity of phi() to prove it but I am confused by the "follows from definition" note.
 
Physics news on Phys.org
I can't see how it follows immediately from the definition, either. But it's clear from the formula for phi that phi(n) is even for any n > 2.
 
Perhaps the author had in mind the following argument:

Suppose that 1 [itex]\leq[/itex] m < n and (m,n) = 1. Then it's easy to see that (n-m,n) = 1. Also, it can't be true that m = n-m because then 2m = n and so (n,m) > 1. Thus, for each such m we have another integer (n-m), distinct from m, that also satisfies 1 [itex]\leq[/itex] n-m < n and (n-m,n) = 1. So, we have partitioned the integers from 1 to n-1 that are relatively prime to n into two sets of the same size. We conclude that the number of such integers, phi (n), is even.

Petek
 
There is a way how to prove it using just the definition:

If x is prime to n, then also n - x is prime to n (easily proven by contradiction). Except for the case when x = n/2, x and n - x are distinct. But when x = n/2, then n/x = 2 and x is not prime to n. So the numbers which are primes to n come always in pairs and thus their total number is even.

More information can be found at http://mathforum.org/library/drmath/view/51541.html".
 
Last edited by a moderator:

Similar threads

  • · Replies 26 ·
Replies
26
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
3K
Replies
48
Views
6K
Replies
8
Views
5K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
Replies
6
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K