Skip to content
Back to exploration
Mathematical modeling / English

Number Theory | Euler's Totient Function: Definition and Basic Example

Michael Penn · YouTube · 5:16

Open original
READ & KEEP

The explanation, unpacked.

Saves 0

Reviewed learning material · Video analysis · English
Read the full overview

This video introduces Euler's totient function, defined as the count of positive integers up to n that are relatively prime to n. The presenter explains the formal definition using set notation and the greatest common divisor, noting its equivalence to the size of the group of units modulo n. Three examples are worked out on the blackboard: calculating φ(5)\varphi(5), φ(8)\varphi(8), and φ(15)\varphi(15), demonstrating how to identify coprime integers for prime, power-of-two, and composite inputs. This introductory number-theory whiteboard segment first displays the definition of Euler's totient function, φ(n)=#{1≤m<n∣gcd⁡(m,n)=1}\varphi(n)=\#\{1\le m<n\mid \gcd(m,n)=1\}, together with examples including φ(5)=4\varphi(5)=4, φ(8)=4\varphi(8)=4, and φ(15)=8\varphi(15)=8. The lecturer finishes explaining the φ(15)\varphi(15) example by noting that certain multiples are skipped and the remaining coprime integers are counted. He then erases the examples and states a proposition for primes: if pp is prime, then φ(p)=p−1\varphi(p)=p-1. After briefly giving the intuitive reason, he writes a careful proof using the facts that the only divisors of pp are 1 and pp, that any mm with 1≤m<p1\le m<p cannot be divisible by pp, and therefore gcd⁡(p,m)=1\gcd(p,m)=1 for every such mm. The segment ends by concluding that all integers from 1 to p−1p-1 are counted by φ(p)\varphi(p), and by previewing a future formula for φ\varphi of a prime power.

Use the learning inspector for key ideas and moments, or open the reading tabs for the complete notes.

Chapters

0:00Introduction0:21Definition of Euler's Totient Function0:41Relation to Group of Units1:01Example: phi(5)1:35Example: phi(8)2:05Example: phi(15)2:40Definition and examples on the board2:59Transition from examples to a theorem3:10Proposition for a prime p3:46Careful proof that φ(p)=p−1\varphi(p)=p-15:07Conclusion and preview of prime powers

Learning script

Generated from the video's visuals and explanation; not verbatim speech.

The video begins with an introduction to Euler's totient function, also known as Euler's phi function. The presenter outlines the goal: to define the function, provide examples, and eventually derive formulas for its values.

The formal definition is presented on the blackboard. The function φ:N→N\varphi: \mathbb{N} \rightarrow \mathbb{N} maps a natural number nn to the count of integers mm in the range 1≤m≤n1 \le m \le n such that gcd⁡(m,n)=1\gcd(m,n)=1. In simpler terms, it counts how many numbers up to nn share no common factors with nn other than 1.

The presenter connects this definition to abstract algebra, noting that the set of integers relatively prime to nn forms the group of units modulo nn, denoted UnU_n. Therefore, φ(n)\varphi(n) is equal to the order (size) of this group, written as ∣Un∣|U_n|.

The first example calculates φ(5)\varphi(5). Since 5 is a prime number, all positive integers less than 5(1,2,3,4)5 (1, 2, 3, 4) are relatively prime to it. Thus, the set is {1,2,3,4}\{1, 2, 3, 4\} and the count is 4.

The second example calculates φ(8)\varphi(8). Here, we must exclude numbers that share a factor with 8. Since 8 is even, all even numbers (2, 4, 6) have a greatest common divisor greater than 1 with 8. The remaining numbers are the odd integers {1,3,5,7}\{1, 3, 5, 7\}. Counting these gives φ(8)=4\varphi(8) = 4.

The third example calculates φ(15)\varphi(15). The number 15 factors into 3×53 \times 5. We must exclude multiples of 3(3,6,9,12)3 (3, 6, 9, 12) and multiples of 5(5,10)5 (5, 10). The remaining integers relatively prime to 15 are listed as {1,2,4,7,8,11,13,14}\{1, 2, 4, 7, 8, 11, 13, 14\}. Although the final count isn't explicitly written before the clip ends, there are 8 elements in this set.

The clip opens with the left half of the chalkboard already showing the definition of Euler's totient function, φ:N→N\varphi:\mathbb{N}\to\mathbb{N} and φ(n)=#{1≤m<n∣gcd⁡(m,n)=1}\varphi(n)=\#\{1\le m<n\mid \gcd(m,n)=1\}. On the right half, three worked examples are visible: φ(5)=#{1,2,3,4}=4\varphi(5)=\#\{1,2,3,4\}=4, φ(8)=#{1,3,5,7}=4\varphi(8)=\#\{1,3,5,7\}=4, and φ(15)=#{1,2,4,7,8,11,13,14}=8\varphi(15)=\#\{1,2,4,7,8,11,13,14\}=8. The lecturer is finishing the last example aloud, saying that one had to skip 12, skip 9, and so on, and that counting the remaining entries gives 8. Mathematically, this is a direct application of the definition: among the integers below 15, only those with greatest common divisor 1 with 15 are retained, and the cardinality of that retained set is 8.

After completing the example, the lecturer announces that he will clean up the board and then prove a formula for the value of φ\varphi of a prime. Visually, the right-side examples are erased while the left-side definition remains. This transition signals a move from concrete computation to a general statement. The unchanged definition on the left serves as the formal basis for the theorem that follows.

On the cleared right side, the lecturer writes a proposition: 'For a prime p we have φ(p)=p−1\varphi(p)=p-1.' This is the central claim of the segment. The hypothesis is that pp is prime, and the conclusion is an exact formula for the totient at that input. The statement specializes the earlier definition by taking n=pn=p, so the task becomes counting how many integers mm with 1≤m<p1\le m<p satisfy gcd⁡(p,m)=1\gcd(p,m)=1.

Before writing the proof, the lecturer gives the intuitive reason the result should hold: the only integers that fail to be relatively prime to a prime are its multiples, and every positive integer smaller than pp is not a multiple of pp. He then explicitly says that, despite this seeming obvious, he will give a more careful proof for practice. This distinction matters pedagogically: the intuitive explanation identifies the key idea, while the forthcoming proof will justify it using the definition of prime divisors and the gcd condition from the definition of φ\varphi.

The proof begins under the heading 'Proof:'. First, the lecturer writes that the only divisors of pp are 1 and pp. This step uses the definition of a prime number and establishes the complete divisor structure of pp. Next, he introduces an arbitrary integer mm satisfying 1≤m<p1\le m<p, matching the range specified in the definition of φ(p)\varphi(p). From m<pm<p, he infers that pp cannot divide mm, because a positive multiple of pp would be at least pp itself.

The argument then converts the divisibility observation into a coprimality statement. Since the only divisors of pp are 1 and pp, and since p∤mp\nmid m, the only possible common divisor of pp and mm is 1. This is written as gcd⁡(p,m)=1\gcd(p,m)=1. At this point the proof has shown that every integer mm in the allowed range 1≤m<p1\le m<p is relatively prime to pp. Applying the definition of the totient function, the counted set is therefore all of {1,2,…,p−1}\{1,2,\dots,p-1\}, whose size is p−1p-1. Hence φ(p)=p−1\varphi(p)=p-1, exactly as claimed.

The lecturer remarks that he will not write down every remaining detail because the verbal explanation has already covered them. He then closes the segment by stating that the next video will consider a formula for φ\varphi of a power of a prime. Thus this clip completes the basic prime case and positions it as the first simple result in a sequence of formulas for the totient function.

Knowledge cards

01

Euler's Totient Function Definition

Euler's totient function, denoted φ(n)\varphi(n), counts the positive integers up to a given integer nn that are relatively prime to nn. Two numbers are relatively prime if their greatest common divisor (gcd) is 1.

φ(n)=#{1≤m≤n∣gcd⁡(m,n)=1}\varphi(n) = \# \{ 1 \le m \le n \mid \gcd(m,n)=1 \}
02

Connection to Group of Units

The value of the totient function corresponds to the size of the multiplicative group of integers modulo n, often denoted as UnU_n or (This formula needs review. Please report it using the page feedback control.{Z))^×\times. This group consists of all residue classes modulo n that have a multiplicative inverse.

φ(n)=∣Un∣\varphi(n) = |U_n|
03

Example: Calculating phi(5)

For a prime number like 5, every positive integer less than 5 is relatively prime to it. The set is {1,2,3,4}\{1, 2, 3, 4\}, so the count is 4.

φ(5)=4\varphi(5) = 4
04

Example: Calculating phi(8)

For n=8n=8, we exclude even numbers because they share a factor of 2 with 8. The valid integers are the odd numbers {1,3,5,7}\{1, 3, 5, 7\}. There are 4 such numbers.

φ(8)=4\varphi(8) = 4
05

Example: Calculating phi(15)

For n=15n=15 (3×53 \times 5), we exclude multiples of 3 and 5. The remaining coprime integers are {1,2,4,7,8,11,13,14}\{1, 2, 4, 7, 8, 11, 13, 14\}. Counting these gives 8.

φ(15)=8\varphi(15) = 8
06

Euler's totient function definition

The video defines φ\varphi as a function from natural numbers to natural numbers. For each nn, φ(n)\varphi(n) is the number of integers mm such that 1≤m<n1\le m<n and gcd⁡(m,n)=1\gcd(m,n)=1. In plain terms, it counts the positive integers below nn that are relatively prime to nn.

φ(n)=#{1≤m<n∣gcd⁡(m,n)=1}\varphi(n)=\#\{1\le m<n\mid \gcd(m,n)=1\}
07

Example: computing φ(15)\varphi(15)

Using the definition with n=15n=15, the board lists the integers below 15 that are coprime to 15: 1,2,4,7,8,11,13,141,2,4,7,8,11,13,14. The lecturer explains that multiples such as 9 and 12 are skipped, and the remaining count is 8. Therefore φ(15)=8\varphi(15)=8.

φ(15)=#{1,2,4,7,8,11,13,14}=8\varphi(15)=\#\{1,2,4,7,8,11,13,14\}=8
08

Other visible examples

Two additional examples remain visible before the board is erased: φ(5)=#{1,2,3,4}=4\varphi(5)=\#\{1,2,3,4\}=4 and φ(8)=#{1,3,5,7}=4\varphi(8)=\#\{1,3,5,7\}=4. These illustrate the same counting procedure on smaller inputs.

φ(5)=4,φ(8)=4\varphi(5)=4,\quad \varphi(8)=4
09

Proposition for a prime input

The main theorem of the segment states that if pp is prime, then the totient of pp is exactly one less than pp. This is written as a proposition before the proof begins.

φ(p)=p−1for prime p\varphi(p)=p-1\quad\text{for prime }p
10

Key idea behind the prime case

The lecturer first gives the intuition: the only integers that are not relatively prime to a prime are its multiples, and no positive integer smaller than pp is a multiple of pp. He then stresses that a more careful proof is still worth writing out.

11

Proof step 1: divisors of a prime

The proof starts from the defining property of a prime number: the only positive divisors of pp are 1 and pp itself. This fact is the foundation for the later gcd conclusion.

12

Proof step 2: choose mm below pp

To evaluate φ(p)\varphi(p), the proof considers an arbitrary integer mm with 1≤m<p1\le m<p, exactly the range appearing in the definition of the totient function.

1≤m<p1\le m<p
13

Proof step 3: pp cannot divide mm

Because mm is strictly smaller than pp, it cannot be a positive multiple of pp. This is recorded on the board as p∤mp\nmid m.

p∤mp\nmid m
14

Proof step 4: conclude gcd⁡(p,m)=1\gcd(p,m)=1

Since the only divisors of pp are 1 and pp, and pp does not divide mm, the only common divisor shared by pp and mm is 1. Therefore gcd⁡(p,m)=1\gcd(p,m)=1 for every mm in the range 1≤m<p1\le m<p.

p∤m⇒gcd⁡(p,m)=1p\nmid m\Rightarrow \gcd(p,m)=1
15

Final conclusion of the proof

Once every integer from 1 through p−1p-1 has been shown to be relatively prime to pp, the definition of φ\varphi implies that all p−1p-1 of them are counted. Hence φ(p)=p−1\varphi(p)=p-1. The lecturer then previews the next topic, a formula for φ\varphi of a power of a prime.

Detailed learning notes

Explore conditions, steps and evidence. Supplementary explanations are labeled separately from content shown in the video.

Symbols · 12

φ\varphi

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board shows the function symbol φ\varphi in the definition line φ\varphi : N→N\mathbb{N} \rightarrow \mathbb{N}.

  2. Audio
    Observation

    The speaker names it "Euler's phi function or Euler's totient function".

Symbol

φ\varphi

Meaning

Euler's totient function, which counts positive integers less than or equal to n that are relatively prime to n.

Domain

n∈Nn \in \mathbb{N}

n

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The variable n appears in φ(n)\varphi(n) and in the set condition 1≤m≤n1 \le m \le n.

  2. Audio
    Observation

    The speaker refers to "natural numbers" when explaining the domain and codomain.

Symbol

n

Meaning

A natural number input to the totient function.

Domain

n∈Nn \in \mathbb{N}

m

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The variable m is the dummy element in the set \{ 1≤m≤n∣gcd⁡(m,n)=11 \le m \le n \mid \gcd(m,n)=1 \}.

Symbol

m

Meaning

An integer ranging from 1 to n used to test whether it is relatively prime to n.

Domain

1≤m≤n1 \le m \le n

gcd⁡\gcd

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The expression gcd⁡(m,n)=1\gcd(m,n)=1 appears on the board as the condition for membership in the set.

  2. Audio
    Observation

    The speaker says "relatively prime to n" and later explicitly calculates "gcd of 2 with 8 is 2".

Symbol

gcd⁡\gcd

Meaning

Greatest common divisor function; gcd⁡(m,n)=1\gcd(m,n)=1 means m and n share no common factors other than 1.

Domain

m, n∈Nn \in \mathbb{N}

UnU_n

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The speaker writes = |UnU_n| below the definition.

  2. Audio
    Observation

    The speaker mentions "the group of units modulo n".

Symbol

UnU_n

Meaning

The group of units modulo n, consisting of integers relatively prime to n under multiplication modulo n.

Domain

n∈Nn \in \mathbb{N}

φ\varphi

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Left board shows φ:N→N\varphi:\mathbb{N}\to\mathbb{N} and φ(n)=#{1≤m<n∣gcd⁡(m,n)=1}\varphi(n)=\#\{1\le m<n\mid \gcd(m,n)=1\}; right board later shows φ(p)=p−1\varphi(p)=p-1.

Symbol

φ\varphi

Meaning

Euler's totient function, defined as the number of positive integers less than nn that are relatively prime to nn.

Domain

Input is a natural number nn; output is a nonnegative integer count.

nn

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The definition line uses φ(n)\varphi(n) with condition 1≤m<n1\le m<n.

Symbol

nn

Meaning

A natural-number argument of the totient function in the general definition.

Domain

n∈Nn\in\mathbb{N}.

mm

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The set-builder definition uses mm in {1≤m<n∣gcd⁡(m,n)=1}\{1\le m<n\mid \gcd(m,n)=1\}; the proof writes 1≤m<p1\le m<p and gcd⁡(p,m)=1\gcd(p,m)=1.

Symbol

mm

Meaning

An integer being tested for relative primality with the argument of φ\varphi.

Domain

In the definition, 1≤m<n1\le m<n; in the proof, 1≤m<p1\le m<p.

gcd⁡(⋅,⋅)\gcd(\cdot,\cdot)

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The definition contains gcd⁡(m,n)=1\gcd(m,n)=1, and the proof concludes gcd⁡(p,m)=1\gcd(p,m)=1.

Symbol

gcd⁡(⋅,⋅)\gcd(\cdot,\cdot)

Meaning

Greatest common divisor function; equality to 1 expresses that two integers are relatively prime.

Domain

Applied to positive integers such as (m,n)(m,n) or (p,m)(p,m).

#\#

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The left board writes φ(n)=#{1≤m<n∣gcd⁡(m,n)=1}\varphi(n)=\#\{1\le m<n\mid \gcd(m,n)=1\}.

Symbol

#\#

Meaning

Cardinality operator counting the number of elements in the displayed set.

Domain

Applied to finite sets of integers.

pp

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Right board states 'For a prime p' and then φ(p)=p−1\varphi(p)=p-1; the proof uses divisors of pp and 1≤m<p1\le m<p.

Symbol

pp

Meaning

A prime number used as the special input to the totient function in the proposition and proof.

Domain

pp is prime.

∣Un∣|U_n|

Approximate timing
Shown in the video
Evidence
  1. Formula
    Observation

    Below the totient definition on the left board there is a separate line resembling =∣Un∣=|U_n|.

Uncertainties
  1. The symbol is only partially legible in the sampled frames.

  2. Its role is not explained in this clip.

Symbol

∣Un∣|U_n|

Meaning

An additional expression visible below the definition; likely a cardinality notation, but its exact meaning is not established in this segment.

Domain

Unclear from this clip.

Knowledge points · 4

Definition of Euler's Totient Function

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board displays Def^n: Euler's totient function, φ\varphi : N→N\mathbb{N} \rightarrow \mathbb{N}, and φ(n)\varphi(n) = \# \{ 1≤m≤n∣gcd⁡(m,n)=11 \le m \le n \mid \gcd(m,n)=1 \}.

  2. Audio
    Observation

    The speaker states: "we define it as a function from N to N... and phi of n is equal to the number of elements in this set... all natural numbers between 1 and n that are relatively prime to n."

Definition
Explanation

Euler's totient function φ(n)\varphi(n) counts the number of positive integers m up to n that are relatively prime to n (i.e., their greatest common divisor is 1).

Formula
φ(n)=#{1≤m≤n∣gcd⁡(m,n)=1}\varphi(n) = \# \{ 1 \le m \le n \mid \gcd(m,n)=1 \}
Conditions
  1. n is a natural number

Prerequisites
  1. φ\varphi
  2. n
  3. m
  4. gcd⁡\gcd

Totient Function and Group of Units

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The speaker writes = |UnU_n| directly below the set definition.

  2. Audio
    Observation

    The speaker explains that the group of units modulo n has exactly these elements, so the count is the same as the number of elements in the group of units modulo n.

Method
Explanation

The value of φ(n)\varphi(n) is equivalent to the order (size) of the multiplicative group of integers modulo n, denoted UnU_n.

Formula
φ(n)=∣Un∣\varphi(n) = |U_n|
Conditions
  1. n is a natural number

Prerequisites
  1. Definition of Euler's Totient Function
  2. UnU_n

Definition of Euler's totient function

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Left board displays φ:N→N\varphi:\mathbb{N}\to\mathbb{N} and φ(n)=#{1≤m<n∣gcd⁡(m,n)=1}\varphi(n)=\#\{1\le m<n\mid \gcd(m,n)=1\}.

  2. Audio
    Observation

    The lecturer refers to having 'defined Euler's totient function' before proving the next result.

Definition
Explanation

The video presents Euler's totient function as a map from natural numbers to natural numbers. For each nn, φ(n)\varphi(n) counts how many integers mm satisfy 1≤m<n1\le m<n and gcd⁡(m,n)=1\gcd(m,n)=1. In words, it counts the positive integers smaller than nn that are relatively prime to nn.

Formula
φ:N→N,φ(n)=#{1≤m<n∣gcd⁡(m,n)=1}\varphi:\mathbb{N}\to\mathbb{N},\quad \varphi(n)=\#\{1\le m<n\mid \gcd(m,n)=1\}
Conditions
  1. nn is a natural number.

  2. The counted integers mm satisfy 1≤m<n1\le m<n.

  3. Relative primality is expressed by gcd⁡(m,n)=1\gcd(m,n)=1.

Worked example φ(15)=8\varphi(15)=8

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Right board shows φ(15)=#{1,2,4,7,8,11,13,14}=8\varphi(15)=\#\{1,2,4,7,8,11,13,14\}=8.

  2. Audio
    Observation

    The lecturer says they had to skip 12, skip 9, and so on, and that counting gives 8.

Method
Explanation

The example applies the definition directly to n=15n=15. The listed set contains the integers below 15 that are coprime to 15, and the final count is 8. The spoken explanation emphasizes excluding multiples of 3 and 5, which matches the visible list omitting numbers such as 3, 6, 9, 12, and 15.

Formula
φ(15)=#{1,2,4,7,8,11,13,14}=8\varphi(15)=\#\{1,2,4,7,8,11,13,14\}=8
Conditions
  1. Use the definition with n=15n=15.

  2. Only integers mm with 1≤m<151\le m<15 are considered.

  3. Keep exactly those mm with gcd⁡(m,15)=1\gcd(m,15)=1.

Prerequisites
  1. Definition of Euler's totient function
Claims and conditions · 1

Totient of a prime equals p−1p-1

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Right board states 'Proposition: For a prime p we have φ(p)=p−1\varphi(p)=p-1.'

  2. Audio
    Observation

    The lecturer says they will prove a formula for the value of φ\varphi of a prime.

Theorem
Statement

For every prime number pp, φ(p)=p−1\varphi(p)=p-1.

Hypotheses
  1. pp is prime.

Quantifiers

Universal over primes pp.

Derivations and proofs · 1

Proof that φ(p)=p−1\varphi(p)=p-1

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Proof written on the right board includes 'Notice the only divisors of p are 1 and p', 'Let 1≤m<p1\le m<p', and 'p∤m⇒gcd⁡(p,m)=1p\nmid m \Rightarrow \gcd(p,m)=1'.

  2. Audio
    Observation

    The lecturer explains that the only divisors of pp are 1 and pp, that any m<pm<p cannot be divisible by pp, and therefore gcd⁡(p,m)=1\gcd(p,m)=1, so all numbers from 1 to p−1p-1 are counted.

Proof
Steps
  1. Expression
    Explanation

    Start from the fact that if pp is prime, its only positive divisors are 1 and pp itself.

    Justification

    Definition of a prime number.

    Shown in the video
  2. Expression
    1≤m<p1\le m<p
    Explanation

    Take an arbitrary integer mm in the range used by the totient definition for input pp.

    Justification

    The definition of φ(p)\varphi(p) counts mm with 1≤m<p1\le m<p.

    Shown in the video
  3. Expression
    p∤mp\nmid m
    Explanation

    Because mm is strictly smaller than pp, mm cannot be a multiple of pp.

    Justification

    A positive multiple of pp is at least pp itself.

    Shown in the video
  4. Expression
    gcd⁡(p,m)=1\gcd(p,m)=1
    Explanation

    Since the only divisors of pp are 1 and pp, and pp does not divide mm, the only common divisor of pp and mm is 1.

    Justification

    Common divisors of pp and mm must be divisors of pp; excluding pp leaves only 1.

    Shown in the video
  5. Expression
    φ(p)=p−1\varphi(p)=p-1
    Explanation

    Therefore every integer mm with 1≤m<p1\le m<p is relatively prime to pp, so the counted set has exactly p−1p-1 elements.

    Justification

    Apply the definition of φ\varphi after establishing gcd⁡(p,m)=1\gcd(p,m)=1 for all 1≤m<p1\le m<p.

    Shown in the video
Conclusion

All integers from 1 through p−1p-1 are relatively prime to a prime pp, hence φ(p)=p−1\varphi(p)=p-1.

Worked examples · 5

Example: φ(5)\varphi(5)

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board shows φ(5)\varphi(5) = \# \{ 1, 2, 3, 4 \} = 4.

  2. Audio
    Observation

    The speaker lists the positive integers smaller than 5 that are relatively prime to 5: 1, 2, 3, and 4, concluding φ(5)\varphi(5) is 4.

Problem

Calculate φ(5)\varphi(5).

Given
  1. n=5n = 5

Goal

Find the number of integers m with 1≤m≤51 \le m \le 5 such that gcd⁡(m,5)=1\gcd(m,5)=1.

Steps
  1. Expression
    {1,2,3,4}\{ 1, 2, 3, 4 \}
    Explanation

    List integers from 1 to 5 that are coprime to 5.

    Justification

    Since 5 is prime, all positive integers less than 5 are coprime to it.

    Shown in the video
  2. Expression
    44
    Explanation

    Count the elements in the set.

    Justification

    There are 4 elements listed.

    Shown in the video
Answer

φ(5)=4\varphi(5) = 4

Verification

Direct counting matches the definition.

Example: φ(8)\varphi(8)

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board shows φ(8)\varphi(8) = \# \{ 1, 3, 5, 7 \} = 4.

  2. Audio
    Observation

    The speaker skips even numbers because their gcd with 8 is not 1 (e.g., gcd(2,8)=2, gcd(4,8)=4, gcd(6,8)=2), leaving 1, 3, 5, 7.

Problem

Calculate φ(8)\varphi(8).

Given
  1. n=8n = 8

Goal

Find the number of integers m with 1≤m≤81 \le m \le 8 such that gcd⁡(m,8)=1\gcd(m,8)=1.

Steps
  1. Expression
    {1,3,5,7}\{ 1, 3, 5, 7 \}
    Explanation

    List odd integers from 1 to 8.

    Justification

    Even numbers share a factor of 2 with 8, so they are not coprime to 8.

    Shown in the video
  2. Expression
    44
    Explanation

    Count the elements in the set.

    Justification

    There are 4 elements listed.

    Shown in the video
Answer

φ(8)=4\varphi(8) = 4

Verification

Direct counting and checking gcd values confirms the result.

Example: φ(15)\varphi(15)

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The board shows φ(15)\varphi(15) = \# \{ 1, 2, 4, 7, 8, 11, 13, 14 \}.

  2. Audio
    Observation

    The speaker lists numbers relatively prime to 15, explicitly skipping multiples of 3 and 5(3,5,6,9,10,12,15)5 (3, 5, 6, 9, 10, 12, 15).

Uncertainties
  1. The final count for φ(15)\varphi(15) is not written on the board before the video ends, though the set contains 8 elements.

Problem

Calculate φ(15)\varphi(15).

Given
  1. n=15n = 15

Goal

Find the number of integers m with 1≤m≤151 \le m \le 15 such that gcd⁡(m,15)=1\gcd(m,15)=1.

Steps
  1. Expression
    {1,2,4,7,8,11,13,14}\{ 1, 2, 4, 7, 8, 11, 13, 14 \}
    Explanation

    List integers from 1 to 15 that do not share factors with 15 (i.e., not divisible by 3 or 5).

    Justification

    15=3×515 = 3 \times 5, so any multiple of 3 or 5 will have a gcd > 1 with 15.

    Shown in the video
Answer

The set has 8 elements, so φ(15)=8\varphi(15) = 8 (implied but not explicitly stated as a final number on the board).

Verification

Counting the listed elements yields 8.

Computing φ(15)\varphi(15) by listing coprime integers

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Right board lists φ(15)=#{1,2,4,7,8,11,13,14}=8\varphi(15)=\#\{1,2,4,7,8,11,13,14\}=8.

  2. Audio
    Observation

    The lecturer says to skip 12, skip 9, and so on, then count up to get 8.

Problem

Compute φ(15)\varphi(15) using the definition of Euler's totient function.

Given
  1. n=15n=15.

  2. φ(n)\varphi(n) counts integers mm with 1≤m<n1\le m<n and gcd⁡(m,n)=1\gcd(m,n)=1.

Goal

Find the number of positive integers less than 15 that are relatively prime to 15.

Steps
  1. Expression
    1≤m<151\le m<15
    Explanation

    Consider the candidate integers below 15.

    Justification

    Directly from the definition of φ(15)\varphi(15).

    Shown in the video
  2. Expression
    {1,2,4,7,8,11,13,14}\{1,2,4,7,8,11,13,14\}
    Explanation

    Keep exactly those candidates whose greatest common divisor with 15 is 1; the board displays this surviving set.

    Justification

    Application of gcd⁡(m,15)=1\gcd(m,15)=1.

    Shown in the video
  3. Expression
    88
    Explanation

    Count the elements of the displayed set.

    Justification

    Cardinality of the listed finite set.

    Shown in the video
Answer

φ(15)=8\varphi(15)=8.

Verification

The spoken explanation mentions skipping multiples such as 9 and 12, consistent with excluding numbers sharing a factor with 15.

Additional visible examples φ(5)\varphi(5) and φ(8)\varphi(8)

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Right board also shows φ(5)=#{1,2,3,4}=4\varphi(5)=\#\{1,2,3,4\}=4 and φ(8)=#{1,3,5,7}=4\varphi(8)=\#\{1,3,5,7\}=4.

Uncertainties
  1. These examples are visible but not verbally worked out in detail during this clip.

Problem

Read the other totient examples already written on the board.

Given
  1. φ(5)=#{1,2,3,4}=4\varphi(5)=\#\{1,2,3,4\}=4.

  2. φ(8)=#{1,3,5,7}=4\varphi(8)=\#\{1,3,5,7\}=4.

Goal

Record the displayed example values without extra derivation.

Steps
  1. Expression
    φ(5)=4\varphi(5)=4
    Explanation

    The board lists the four positive integers below 5 and gives their count.

    Justification

    Visible worked example on the board.

    Shown in the video
  2. Expression
    φ(8)=4\varphi(8)=4
    Explanation

    The board lists the odd integers below 8 and gives their count.

    Justification

    Visible worked example on the board.

    Shown in the video
Answer

φ(5)=4\varphi(5)=4 and φ(8)=4\varphi(8)=4.

Verification

Both lines match the same set-counting definition shown on the left board.

Visual events · 4

Blackboard Layout

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    A blackboard is split by a yellow vertical line. The left side contains the pre-written definition of Euler's totient function.

Objects
  1. Blackboard

  2. Yellow dividing line

  3. Pre-written text on the left

Invariants
  1. The left side remains static during the examples.

Interpretation

The layout separates the formal definition from the worked examples.

Writing Examples

Clear evidence
Shown in the video
Evidence
  1. Animation
    Observation

    The speaker writes 'examples' on the right side and sequentially calculates φ(5)\varphi(5), φ(8)\varphi(8), and φ(15)\varphi(15).

Objects
  1. Chalk

  2. Right side of blackboard

Changes
  1. Text appears sequentially as the speaker calculates each example.

Invariants
  1. The definition on the left remains visible.

Interpretation

Visual progression of applying the definition to specific numbers.

Board cleared from examples to theorem statement

Clear evidence
Shown in the video
Evidence
  1. Animation
    Observation

    The right side of the chalkboard containing the examples is erased, leaving the left-side definition visible.

  2. Audio
    Observation

    The lecturer says he will clean up the board and then prove a formula for the value of φ\varphi of a prime.

Objects
  1. Chalkboard left panel with the definition of φ\varphi.

  2. Chalkboard right panel with examples φ(5)\varphi(5), φ(8)\varphi(8), and φ(15)\varphi(15).

Changes
  1. The example computations on the right are erased.

  2. The left definition remains visible.

  3. A new heading 'Proposition' is then written on the right.

Invariants
  1. The definition of φ\varphi on the left stays on screen.

  2. The lecture topic remains Euler's totient function.

Interpretation

The visual transition marks a shift from concrete examples to a general statement about primes.

Stepwise writing of the prime-totient proof

Clear evidence
Shown in the video
Evidence
  1. Animation
    Observation

    Under 'Proof:' the lecturer writes the divisor fact, the assumption 1≤m<p1\le m<p, and the implication p∤m⇒gcd⁡(p,m)=1p\nmid m\Rightarrow\gcd(p,m)=1.

Objects
  1. Text 'Proof:'.

  2. Sentence about the only divisors of pp.

  3. Inequality 1≤m<p1\le m<p.

  4. Implication involving p∤mp\nmid m and gcd⁡(p,m)=1\gcd(p,m)=1.

Changes
  1. Each proof line is added sequentially on the right board.

  2. The argument moves from properties of divisors to a gcd conclusion.

Invariants
  1. The left-side definition of φ\varphi remains visible throughout.

  2. The proposition φ(p)=p−1\varphi(p)=p-1 stays above the proof.

Interpretation

The writing order mirrors the logical structure: prime divisor fact, arbitrary m<pm<p, exclusion of divisibility by pp, then coprimality.

Misconceptions · 2

Skipping Non-Coprime Numbers

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    When calculating φ(8)\varphi(8), the speaker notes that even numbers must be skipped because their gcd with 8 is not 1.

Misconception

Assuming all numbers up to n are included in the count.

Clarification

Only numbers m where gcd⁡(m,n)=1\gcd(m,n)=1 are counted; for composite n like 8, many numbers (like evens) are excluded.

Intuitive plausibility is not the same as a formal proof

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The lecturer says the result may seem obvious because only multiples of a prime fail to be relatively prime to it, but adds that they will give a more careful proof for practice.

Misconception

One might think φ(p)=p−1\varphi(p)=p-1 needs no proof because it looks obvious from the behavior of multiples of pp.

Clarification

The video explicitly separates the intuitive reason from a more careful proof, showing that the conclusion should still be justified from the definition of prime divisors and gcd.

Concept relations · 4

Definition of Euler's Totient Function → Totient Function and Group of Units

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    Speaker links the set definition to the group of units modulo n.

  2. Formula
    Observation

    Writes = |UnU_n|.

Equivalent
Explanation

The cardinality of the set of coprimes is exactly the order of the group of units modulo n.

Definition of Euler's totient function → Totient of a prime equals p−1p-1

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The proof repeatedly uses the definition φ(n)=#{1≤m<n∣gcd⁡(m,n)=1}\varphi(n)=\#\{1\le m<n\mid \gcd(m,n)=1\} with n=pn=p.

Proof dependency
Explanation

The proposition φ(p)=p−1\varphi(p)=p-1 is proved by applying the general definition of φ\varphi to the special case n=pn=p and analyzing gcd⁡(p,m)\gcd(p,m).

Definition of Euler's totient function → Worked example φ(15)=8\varphi(15)=8

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The examples φ(5)\varphi(5), φ(8)\varphi(8), and φ(15)\varphi(15) are written as cardinalities of sets matching the definition on the left.

Application
Explanation

The worked examples instantiate the abstract definition by listing the relevant coprime integers and counting them.

Totient of a prime equals p−1p-1 → Proof that φ(p)=p−1\varphi(p)=p-1

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The proof links 'the only divisors of p are 1 and p' with the conclusion gcd⁡(p,m)=1\gcd(p,m)=1 once p∤mp\nmid m is known.

Contains
Explanation

The key ingredient inside the proof is the divisor structure of a prime number, which is then converted into a gcd statement.

Find an answer · 7

What is the formal definition of Euler's totient function?

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Board shows definition.

Knowledge points
  1. Definition of Euler's Totient Function

How do you calculate phi(8)?

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Board shows calculation for 8.

Knowledge points
  1. Example: φ(8)\varphi(8)

What is the definition of Euler's totient function shown on the board?

Clear evidence
Derived from the video
Evidence
  1. Formula
    Observation

    The left board displays the full definition of φ(n)\varphi(n).

Knowledge points
  1. Definition of Euler's totient function

Why does φ(p)=p−1\varphi(p)=p-1 when pp is prime?

Clear evidence
Derived from the video
Evidence
  1. Formula
    Observation

    The right board states and proves φ(p)=p−1\varphi(p)=p-1 for a prime pp.

Knowledge points
  1. Totient of a prime equals p−1p-1
  2. Proof that φ(p)=p−1\varphi(p)=p-1

How is φ(15)\varphi(15) computed in the example?

Clear evidence
Derived from the video
Evidence
  1. Formula
    Observation

    The board lists φ(15)=#{1,2,4,7,8,11,13,14}=8\varphi(15)=\#\{1,2,4,7,8,11,13,14\}=8.

  2. Audio
    Observation

    The lecturer mentions skipping 12 and 9 before counting to 8.

Knowledge points
  1. Worked example φ(15)=8\varphi(15)=8
  2. Computing φ(15)\varphi(15) by listing coprime integers

What role does gcd⁡(m,n)=1\gcd(m,n)=1 play in the definition and proof?

Clear evidence
Derived from the video
Evidence
  1. Formula
    Observation

    Both the definition and the proof use gcd⁡(⋅,⋅)=1\gcd(\cdot,\cdot)=1 to express relative primality.

Knowledge points
  1. Definition of Euler's totient function
  2. Proof that φ(p)=p−1\varphi(p)=p-1

What other totient examples are visible besides φ(15)\varphi(15)?

Approximate timing
Derived from the video
Evidence
  1. Formula
    Observation

    The board also shows φ(5)=4\varphi(5)=4 and φ(8)=4\varphi(8)=4.

Uncertainties
  1. These examples are visible but not discussed in detail in the audio during this clip.

Knowledge points
  1. Additional visible examples φ(5)\varphi(5) and φ(8)\varphi(8)
Coverage and review notes

Covered · Introduction and context setting.

Covered · Definition and relation to group of units.

Covered · Worked examples.

Covered · Opening board state shows the definition and three examples; the audio finishes the count for φ(15)=8\varphi(15)=8.

Covered · The lecturer transitions from examples toward the next theorem while the example board remains visible.

Covered · The right-side examples are erased and the lecturer announces a proof about φ\varphi of a prime.

Covered · The proposition 'For a prime p we have φ(p)=p−1\varphi(p)=p-1' is written on the board.

Covered · The lecturer gives the intuitive reason and says a more careful proof will follow.

Covered · The full proof is written and explained step by step from divisors of pp to gcd⁡(p,m)=1\gcd(p,m)=1 and then to φ(p)=p−1\varphi(p)=p-1.

Covered · The lecturer closes the segment and previews the next topic, a formula for φ\varphi of a power of a prime.

Explore the knowledge in this video

Open video knowledge graph →

  • Euler's totient ExplanationAt 0:22
    Why this connection?

    Reviewed English material v1: card "Euler's Totient Function Definition" at 0:22 — Euler's totient function, denoted φ(n)\varphi(n), counts the positive integers up to a given integer nn that are relatively prime to nn. Two numbers are relatively prime if their greatest common divisor (gcd) is 1.