Euler's Totient Function Definition
Euler's totient function, denoted , counts the positive integers up to a given integer that are relatively prime to . Two numbers are relatively prime if their greatest common divisor (gcd) is 1.
Michael Penn · YouTube · 5:16
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 , , and , 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, , together with examples including , , and . The lecturer finishes explaining the 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 is prime, then . After briefly giving the intuitive reason, he writes a careful proof using the facts that the only divisors of are 1 and , that any with cannot be divisible by , and therefore for every such . The segment ends by concluding that all integers from 1 to are counted by , and by previewing a future formula for of a prime power.
Use the learning inspector for key ideas and moments, or open the reading tabs for the complete notes.
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 maps a natural number to the count of integers in the range such that . In simpler terms, it counts how many numbers up to share no common factors with other than 1.
The presenter connects this definition to abstract algebra, noting that the set of integers relatively prime to forms the group of units modulo , denoted . Therefore, is equal to the order (size) of this group, written as .
The first example calculates . Since 5 is a prime number, all positive integers less than are relatively prime to it. Thus, the set is and the count is 4.
The second example calculates . 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 . Counting these gives .
The third example calculates . The number 15 factors into . We must exclude multiples of and multiples of . The remaining integers relatively prime to 15 are listed as . 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, and . On the right half, three worked examples are visible: , , and . 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 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 .' This is the central claim of the segment. The hypothesis is that is prime, and the conclusion is an exact formula for the totient at that input. The statement specializes the earlier definition by taking , so the task becomes counting how many integers with satisfy .
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 is not a multiple of . 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 .
The proof begins under the heading 'Proof:'. First, the lecturer writes that the only divisors of are 1 and . This step uses the definition of a prime number and establishes the complete divisor structure of . Next, he introduces an arbitrary integer satisfying , matching the range specified in the definition of . From , he infers that cannot divide , because a positive multiple of would be at least itself.
The argument then converts the divisibility observation into a coprimality statement. Since the only divisors of are 1 and , and since , the only possible common divisor of and is 1. This is written as . At this point the proof has shown that every integer in the allowed range is relatively prime to . Applying the definition of the totient function, the counted set is therefore all of , whose size is . Hence , 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 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.
Euler's totient function, denoted , counts the positive integers up to a given integer that are relatively prime to . Two numbers are relatively prime if their greatest common divisor (gcd) is 1.
The value of the totient function corresponds to the size of the multiplicative group of integers modulo n, often denoted as or (This formula needs review. Please report it using the page feedback control.{Z))^. This group consists of all residue classes modulo n that have a multiplicative inverse.
For a prime number like 5, every positive integer less than 5 is relatively prime to it. The set is , so the count is 4.
For , we exclude even numbers because they share a factor of 2 with 8. The valid integers are the odd numbers . There are 4 such numbers.
For (), we exclude multiples of 3 and 5. The remaining coprime integers are . Counting these gives 8.
The video defines as a function from natural numbers to natural numbers. For each , is the number of integers such that and . In plain terms, it counts the positive integers below that are relatively prime to .
Using the definition with , the board lists the integers below 15 that are coprime to 15: . The lecturer explains that multiples such as 9 and 12 are skipped, and the remaining count is 8. Therefore .
Two additional examples remain visible before the board is erased: and . These illustrate the same counting procedure on smaller inputs.
The main theorem of the segment states that if is prime, then the totient of is exactly one less than . This is written as a proposition before the proof begins.
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 is a multiple of . He then stresses that a more careful proof is still worth writing out.
The proof starts from the defining property of a prime number: the only positive divisors of are 1 and itself. This fact is the foundation for the later gcd conclusion.
To evaluate , the proof considers an arbitrary integer with , exactly the range appearing in the definition of the totient function.
Because is strictly smaller than , it cannot be a positive multiple of . This is recorded on the board as .
Since the only divisors of are 1 and , and does not divide , the only common divisor shared by and is 1. Therefore for every in the range .
Once every integer from 1 through has been shown to be relatively prime to , the definition of implies that all of them are counted. Hence . The lecturer then previews the next topic, a formula for of a power of a prime.
Explore conditions, steps and evidence. Supplementary explanations are labeled separately from content shown in the video.
The board shows the function symbol in the definition line : .
The speaker names it "Euler's phi function or Euler's totient function".
Euler's totient function, which counts positive integers less than or equal to n that are relatively prime to n.
The variable n appears in and in the set condition .
The speaker refers to "natural numbers" when explaining the domain and codomain.
n
A natural number input to the totient function.
The variable m is the dummy element in the set \{ \}.
m
An integer ranging from 1 to n used to test whether it is relatively prime to n.
The expression appears on the board as the condition for membership in the set.
The speaker says "relatively prime to n" and later explicitly calculates "gcd of 2 with 8 is 2".
Greatest common divisor function; means m and n share no common factors other than 1.
m,
The speaker writes = || below the definition.
The speaker mentions "the group of units modulo n".
The group of units modulo n, consisting of integers relatively prime to n under multiplication modulo n.
Left board shows and ; right board later shows .
Euler's totient function, defined as the number of positive integers less than that are relatively prime to .
Input is a natural number ; output is a nonnegative integer count.
The definition line uses with condition .
A natural-number argument of the totient function in the general definition.
.
The set-builder definition uses in ; the proof writes and .
An integer being tested for relative primality with the argument of .
In the definition, ; in the proof, .
The definition contains , and the proof concludes .
Greatest common divisor function; equality to 1 expresses that two integers are relatively prime.
Applied to positive integers such as or .
The left board writes .
Cardinality operator counting the number of elements in the displayed set.
Applied to finite sets of integers.
Right board states 'For a prime p' and then ; the proof uses divisors of and .
A prime number used as the special input to the totient function in the proposition and proof.
is prime.
Below the totient definition on the left board there is a separate line resembling .
The symbol is only partially legible in the sampled frames.
Its role is not explained in this clip.
An additional expression visible below the definition; likely a cardinality notation, but its exact meaning is not established in this segment.
Unclear from this clip.
The board displays Def^n: Euler's totient function, : , and = \# \{ \}.
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."
Euler's totient function counts the number of positive integers m up to n that are relatively prime to n (i.e., their greatest common divisor is 1).
n is a natural number
The speaker writes = || directly below the set definition.
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.
The value of is equivalent to the order (size) of the multiplicative group of integers modulo n, denoted .
n is a natural number
Left board displays and .
The lecturer refers to having 'defined Euler's totient function' before proving the next result.
The video presents Euler's totient function as a map from natural numbers to natural numbers. For each , counts how many integers satisfy and . In words, it counts the positive integers smaller than that are relatively prime to .
is a natural number.
The counted integers satisfy .
Relative primality is expressed by .
Right board shows .
The lecturer says they had to skip 12, skip 9, and so on, and that counting gives 8.
The example applies the definition directly to . 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.
Use the definition with .
Only integers with are considered.
Keep exactly those with .
Right board states 'Proposition: For a prime p we have .'
The lecturer says they will prove a formula for the value of of a prime.
For every prime number , .
is prime.
Universal over primes .
Proof written on the right board includes 'Notice the only divisors of p are 1 and p', 'Let ', and ''.
The lecturer explains that the only divisors of are 1 and , that any cannot be divisible by , and therefore , so all numbers from 1 to are counted.
Start from the fact that if is prime, its only positive divisors are 1 and itself.
Definition of a prime number.
Take an arbitrary integer in the range used by the totient definition for input .
The definition of counts with .
Because is strictly smaller than , cannot be a multiple of .
A positive multiple of is at least itself.
Since the only divisors of are 1 and , and does not divide , the only common divisor of and is 1.
Common divisors of and must be divisors of ; excluding leaves only 1.
Therefore every integer with is relatively prime to , so the counted set has exactly elements.
Apply the definition of after establishing for all .
All integers from 1 through are relatively prime to a prime , hence .
The board shows = \# \{ 1, 2, 3, 4 \} = 4.
The speaker lists the positive integers smaller than 5 that are relatively prime to 5: 1, 2, 3, and 4, concluding is 4.
Calculate .
Find the number of integers m with such that .
List integers from 1 to 5 that are coprime to 5.
Since 5 is prime, all positive integers less than 5 are coprime to it.
Count the elements in the set.
There are 4 elements listed.
Direct counting matches the definition.
The board shows = \# \{ 1, 3, 5, 7 \} = 4.
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.
Calculate .
Find the number of integers m with such that .
List odd integers from 1 to 8.
Even numbers share a factor of 2 with 8, so they are not coprime to 8.
Count the elements in the set.
There are 4 elements listed.
Direct counting and checking gcd values confirms the result.
The board shows = \# \{ 1, 2, 4, 7, 8, 11, 13, 14 \}.
The speaker lists numbers relatively prime to 15, explicitly skipping multiples of 3 and .
The final count for is not written on the board before the video ends, though the set contains 8 elements.
Calculate .
Find the number of integers m with such that .
List integers from 1 to 15 that do not share factors with 15 (i.e., not divisible by 3 or 5).
, so any multiple of 3 or 5 will have a gcd > 1 with 15.
The set has 8 elements, so (implied but not explicitly stated as a final number on the board).
Counting the listed elements yields 8.
Right board lists .
The lecturer says to skip 12, skip 9, and so on, then count up to get 8.
Compute using the definition of Euler's totient function.
.
counts integers with and .
Find the number of positive integers less than 15 that are relatively prime to 15.
Consider the candidate integers below 15.
Directly from the definition of .
Keep exactly those candidates whose greatest common divisor with 15 is 1; the board displays this surviving set.
Application of .
Count the elements of the displayed set.
Cardinality of the listed finite set.
.
The spoken explanation mentions skipping multiples such as 9 and 12, consistent with excluding numbers sharing a factor with 15.
Right board also shows and .
These examples are visible but not verbally worked out in detail during this clip.
Read the other totient examples already written on the board.
.
.
Record the displayed example values without extra derivation.
The board lists the four positive integers below 5 and gives their count.
Visible worked example on the board.
The board lists the odd integers below 8 and gives their count.
Visible worked example on the board.
and .
Both lines match the same set-counting definition shown on the left board.
A blackboard is split by a yellow vertical line. The left side contains the pre-written definition of Euler's totient function.
Blackboard
Yellow dividing line
Pre-written text on the left
The left side remains static during the examples.
The layout separates the formal definition from the worked examples.
The speaker writes 'examples' on the right side and sequentially calculates , , and .
Chalk
Right side of blackboard
Text appears sequentially as the speaker calculates each example.
The definition on the left remains visible.
Visual progression of applying the definition to specific numbers.
The right side of the chalkboard containing the examples is erased, leaving the left-side definition visible.
The lecturer says he will clean up the board and then prove a formula for the value of of a prime.
Chalkboard left panel with the definition of .
Chalkboard right panel with examples , , and .
The example computations on the right are erased.
The left definition remains visible.
A new heading 'Proposition' is then written on the right.
The definition of on the left stays on screen.
The lecture topic remains Euler's totient function.
The visual transition marks a shift from concrete examples to a general statement about primes.
Under 'Proof:' the lecturer writes the divisor fact, the assumption , and the implication .
Text 'Proof:'.
Sentence about the only divisors of .
Inequality .
Implication involving and .
Each proof line is added sequentially on the right board.
The argument moves from properties of divisors to a gcd conclusion.
The left-side definition of remains visible throughout.
The proposition stays above the proof.
The writing order mirrors the logical structure: prime divisor fact, arbitrary , exclusion of divisibility by , then coprimality.
When calculating , the speaker notes that even numbers must be skipped because their gcd with 8 is not 1.
Assuming all numbers up to n are included in the count.
Only numbers m where are counted; for composite n like 8, many numbers (like evens) are excluded.
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.
One might think needs no proof because it looks obvious from the behavior of multiples of .
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.
Speaker links the set definition to the group of units modulo n.
Writes = ||.
The cardinality of the set of coprimes is exactly the order of the group of units modulo n.
The proof repeatedly uses the definition with .
The proposition is proved by applying the general definition of to the special case and analyzing .
The examples , , and are written as cardinalities of sets matching the definition on the left.
The worked examples instantiate the abstract definition by listing the relevant coprime integers and counting them.
The proof links 'the only divisors of p are 1 and p' with the conclusion once is known.
The key ingredient inside the proof is the divisor structure of a prime number, which is then converted into a gcd statement.
Board shows definition.
Board shows calculation for 8.
The left board displays the full definition of .
The right board states and proves for a prime .
The board lists .
The lecturer mentions skipping 12 and 9 before counting to 8.
Both the definition and the proof use to express relative primality.
The board also shows and .
These examples are visible but not discussed in detail in the audio during this clip.
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 .
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 of a prime.
Covered · The proposition 'For a prime p we have ' 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 to and then to .
Covered · The lecturer closes the segment and previews the next topic, a formula for of a power of a prime.
Reviewed English material v1: card "Euler's Totient Function Definition" at 0:22 — Euler's totient function, denoted , counts the positive integers up to a given integer that are relatively prime to . Two numbers are relatively prime if their greatest common divisor (gcd) is 1.