Math 2.0

Number theory Proof

Proof of the formula for the totient of a prime

Builds on Euler's totient functionPrime numberGreatest common divisorCoprime integers

Proof

  1. Let pp be a prime number. By definition, Euler's totient function φ(p)\varphi(p) is the number of integers xx with 1≤x≤p1 \le x \le p that are coprime to pp.
  2. Let xx be an integer with 1≤x≤p1 \le x \le p, and let d=gcd⁡(x,p)d = \gcd(x, p) be the greatest common divisor. It is a positive divisor of pp.
  3. Since pp is prime, its only positive divisors are 11 and pp. So d=1d = 1 or d=pd = p.
  4. If x≤p−1x \le p - 1, then 0<x<p0 < x < p, so pp does not divide xx. Since dd divides xx, d≠pd \ne p, and so d=1d = 1.
  5. If x=px = p, then d=gcd⁡(p,p)=pd = \gcd(p, p) = p. Since p>1p > 1, pp is not coprime to itself.
  6. By steps 4 and 5, the integers in {1,…,p}\{ 1, \dots, p \} that are coprime to pp are exactly 1,2,…,p−11, 2, \dots, p - 1.
  7. Hence φ(p)=p−1\varphi(p) = p - 1.

Idea

A prime has no divisors other than 11 and itself. So every positive integer below pp shares no factor with pp, and only pp itself is left out.

Reading path

To understand this page from the ground up, read these 6 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Divisibility definition
  2. Greatest common divisor definition
  3. Prime number definition
  4. Coprime integers definition
  5. Euler's totient function definition
  6. Proof of the formula for the totient of a prime proof

Where this leads

5 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Euler%27s_totient_function, Value of phi for a prime power argument
About this page
TagKXWTG4M4S4
URIm2://KXWTG4M4S4
Kindproof
WritingW0 stub
MSC11A25
ProvesTotient of a prime
UsesEuler's totient function, Prime number, Greatest common divisor, Coprime integers
MethodsDirect proof
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.