Skip to content
Back to exploration
Algebra / English

Euler's totient, Quadratic residues|封无义

封无义 · Bilibili · 3:07

Open original
READ & KEEP

The explanation, unpacked.

Saves 0

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

This segment introduces coprimality and the greatest common divisor criterion via the question: 'Which numbers from 1 to 6 are coprime to 6?' Enumeration yields 1 and 5, totaling 2 numbers. The problem is then generalized to φ(100)φ(100), highlighting the high cost of enumeration and introducing Euler's algorithm: φ(100)=100×1/2×4/5=40φ(100) = 100 \times 1 / 2 \times 4 / 5 = 40. The video formally defines Euler's totient function φ(n)φ(n) as the count of integers from 1 to n that are coprime to n. Starting with a prime p, it derives φ(p)=p−1φ(p) = p - 1; then, by excluding multiples of p, it obtains the prime-power formula φ(pk)=pk−pk−1φ(p^k) = p^k - p^{k-1}. Finally, the Fundamental Theorem of Arithmetic is introduced to prepare for the general integer case. This segment uses blackboard-style derivation on a black background with white text. It first states that Euler's totient function φ is multiplicative under the coprimality condition, then writes any positive integer n as a product of powers of distinct primes. Next, it uses multiplicativity to split φ(n)φ(n) into the product of function values at each prime power, substitutes the previously derived prime power formula φ(pk)=pk−pk−1φ(p^k)=p^k-p^{k-1}, factors out pikip_i^{k_i} from each term, and recognizes the remaining product of prime powers as n, ultimately obtaining the general formula φ(n)=n∏i=1m(1−1/pi)φ(n)=n\prod _{i=1}^m(1-1/p_i). At the end, the conclusion is highlighted in a yellow box, followed by closing thanks.

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

Chapters

0:00Pose the question: Which numbers from 1 to 6 are coprime to 6?0:04Enumerate and use the greatest common divisor to test coprimality.0:27Generalize to counting from 1 to 100 and introduce Euler's algorithm.0:51Define Euler's totient function φ(n)φ(n).1:01Prime case: φ(p)=p−1φ(p) = p - 1.1:12Prime-power case: φ(pk)=pk−pk−1φ(p^k) = p^k - p^{k-1}.1:35Introduce the Fundamental Theorem of Arithmetic.2:00The multiplicative property of Euler's totient function2:08Prime factorization and separation2:32Substitute the prime power formula2:39Factor out n and simplify2:51General formula in product form3:01Emphasis on the conclusion and closing

Learning script

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

The segment begins with a concrete counting problem: Among the integers from 1 to 6, which are coprime to 6? Here, 'coprime' is not an isolated term; the greatest common divisor will be used immediately to define and test it.

The video uses enumeration: the candidate set is written as 1, 2, 3, 4, 5, 6. For each integer a, the test is whether gcd⁡(a,6)=1\gcd(a,6)=1 holds; if so, a is coprime to 6.

Enumeration shows only 1 and 5 are coprime to 6, so the count of qualifying integers is 2. This count is precisely the value of the Euler function φ(n)φ(n) when n=6n = 6.

The problem then expands to counting the integers between 1 and 100 inclusive that are coprime to 100. The screen fills with a grid of numbers from 1 to 100, illustrating that checking each number individually becomes computationally expensive.

The video introduces Leonhard Euler's algorithm and directly writes down φ(100)=100×12×45=40\varphi(100)=100\times\frac12\times\frac45=40. This segment displays only the multiplicative result, without explaining the origin of the two fractional factors.

This leads to the formal definition: Euler's totient function φ(n)\varphi(n) counts the integers from 1 to n inclusive that are coprime to n. That is, the earlier example from 1 to 6 computes φ(6)\varphi(6), and the example from 1 to 100 computes φ(100)\varphi(100).

Next, we begin with the simplest case: prime numbers. Let p be a prime. Among the integers from 1 to p inclusive, all except p itself lack the factor p, and thus are all coprime to p. There are p minus 1 such integers, so φ(p)=p−1\varphi(p)=p-1.

Then we generalize from the prime p to the prime power pkp^k. Among the integers from 1 to pkp^k inclusive, a number is not coprime to pkp^k if and only if it is divisible by p; there are exactly pk−1p^{k-1} such multiples of p.

Therefore, subtracting the non coprime onespkp^k from the totalpk−1p^{k-1} gives the count of coprime numberspk−pk−1p^k-p^{k-1} that isφ(pk)=pk−pk−1\varphi(p^k)=p^k-p^{k-1}This step extends the counting idea for prime numbers to prime powers.

Finally, the video explains that the general case for an arbitrary positive integer n is more complex and requires introducing key properties first. The first tool is the fundamental theorem of arithmetic: if n is a positive integer greater than 1, then n can be written as a product of prime powers n=p1k1p2k2⋯pmkmn=p_1^{k_1}p_2^{k_2}\cdots p_m^{k_m}.

This segment ends with the statement of the fundamental theorem of arithmetic, without yet showing how to use it to derive the full formula for general φ(n)\varphi(n).

At the beginning of this segment, a key property is introduced: Euler's totient function φ\varphi is multiplicative. The screen simultaneously displays the condition gcd⁡(n,m)=1\gcd(n,m)=1 and the conclusion φ(nm)=φ(n)⋅φ(m)\varphi(nm)=\varphi(n)\cdot\varphi(m), clarifying that the function value at a product can be split into the product of function values only when the two positive integers are coprime.

Next, the object of study is generalized to an arbitrary positive integer nn. The video writes n=p1k1⋅p2k2⋅p3k3⋯pmkmn=p_1^{k_1}\cdot p_2^{k_2}\cdot p_3^{k_3}\cdots p_m^{k_m}, i.e., expresses nn as a product of powers of distinct primes. This factorization serves as the starting point for all subsequent manipulations.

Then the factorization is substituted into φ(n)\varphi(n), yielding φ(n)=φ(p1k1⋅p2k2⋯pmkm)\varphi(n)=\varphi(p_1^{k_1}\cdot p_2^{k_2}\cdots p_m^{k_m}). Since the various pikip_i^{k_i} arise from distinct primes, they are pairwise coprime; thus, the previously established multiplicativity can be applied repeatedly to split the function value inside the large parentheses into φ(p1k1)⋅φ(p2k2)⋯φ(pmkm)\varphi(p_1^{k_1})\cdot\varphi(p_2^{k_2})\cdots\varphi(p_m^{k_m}).

Next, the video invokes the previously derived prime power formula: for a prime pp and a positive integer kk, we have φ(pk)=pk−pk−1\varphi(p^k)=p^k-p^{k-1}. Accordingly, each factor is replaced, transforming the expression into (p1k1−p1k1−1)⋅(p2k2−p2k2−1)⋯(pmkm−pmkm−1)(p_1^{k_1}-p_1^{k_1-1})\cdot(p_2^{k_2}-p_2^{k_2-1})\cdots(p_m^{k_m}-p_m^{k_m-1}).

Algebraic simplification follows. Each difference term can factor out its corresponding highest power: piki−piki−1=piki(1−1pi)p_i^{k_i}-p_i^{k_i-1}=p_i^{k_i}\left(1-\frac{1}{p_i}\right). After factoring all pikip_i^{k_i} to the front, what remains is the product of the various (1−1pi)\left(1-\frac{1}{p_i}\right). At this moment, the screen highlights p1k1p2k2⋯pmkmp_1^{k_1}p_2^{k_2}\cdots p_m^{k_m} in red, reminding viewers that this part exactly equals the original nn.

Substituting the red part back into nn yields φ(n)=n(1−1p1)(1−1p2)⋯(1−1pm)\varphi(n)=n\left(1-\frac{1}{p_1}\right)\left(1-\frac{1}{p_2}\right)\cdots\left(1-\frac{1}{p_m}\right). The significance of this step is to unify all correction factors—previously distributed across the prime factors—onto nn.

Finally, the video uses product notation to compress the expression and obtain the general formula φ(n)=n∏i=1m(1−1pi)\varphi(n)=n\prod_{i=1}^{m}\left(1-\frac{1}{p_i}\right). Here, p1,…,pmp_1,\dots,p_m is the set of all distinct prime factors of nn. The screen highlights this conclusion with a yellow box, indicating that this is the target of the current derivation.

Next comes the ending: the screen displays "Thank you for watching!", and the voiceover announces that this episode has concluded and bids farewell until the next one. No new mathematical content is introduced here.

Knowledge cards

01

Using the greatest common divisor to test for coprimality

The video illustrates this in the example from 1 to 6 If an integer has greatest common divisor 6 with 1 then it is coprime to 6 This is generally written as gcd⁡(a,n)=1\gcd(a,n)=1 when a is coprime to n. This is the foundation for understanding the counting condition of Euler's totient function.

gcd⁡(a,n)=1⟺aandnare coprime\gcd(a,n)=1 \Longleftrightarrow a\text{and}n\text{are coprime}
02

Definition of Euler's totient function φ(n)φ(n)

Euler's totient function φ(n)\varphi(n) is defined as the count of integers from 1 to n inclusive that are coprime to n. The video first builds intuition using an enumeration example with φ(6)=2\varphi(6)=2, then introduces the formal definition using φ(100)=40\varphi(100)=40.

φ(n)=#{a∈Z:1≤a≤n, gcd⁡(a,n)=1}\varphi(n)=\#\{a\in\mathbb{Z}:1\le a\le n,\ \gcd(a,n)=1\}
03

Euler's totient function value at a prime

If p is a prime, then all integers from 1 to p except p itself are coprime to p, so there are p minus 1 such integers. By the definition of Euler's totient function, we obtain φ(p)=p−1\varphi(p)=p-1.

φ(p)=p−1\varphi(p)=p-1
04

Euler's totient function formula at a prime power

If p is a prime, among the integers from 1 to pkp^k, those not coprime to pkp^k are exactly the multiples of p, and the video gives their count as pk−1p^{k-1}. Subtracting the count of non-coprime integers from the total pkp^k yields φ(pk)=pk−pk−1\varphi(p^k)=p^k-p^{k-1}.

φ(pk)=pk−pk−1\varphi(p^k)=p^k-p^{k-1}
05

Example of Euler's algorithm for φ(100)φ(100)

The video asks how many integers from 1 to 100 are coprime to 100, and presents Euler's algorithm φ(100)=100×12×45=40\varphi(100)=100\times\frac12\times\frac45=40. This segment does not explain the origin of 12\frac12 or 45\frac45; it only uses them as a motivating example to introduce Euler's totient function.

φ(100)=100×12×45=40\varphi(100)=100\times\frac12\times\frac45=40
06

Introduction of the fundamental theorem of arithmetic

To handle a general positive integer n, the video introduces the fundamental theorem of arithmetic: if n is a positive integer greater than 1, then n can be uniquely written as a product of prime powers n=p1k1p2k2⋯pmkmn=p_1^{k_1}p_2^{k_2}\cdots p_m^{k_m}. This segment only states the theorem and does not proceed to derive the general formula for Euler's totient function.

n=p1k1⋅p2k2⋯pmkmn=p_1^{k_1}\cdot p_2^{k_2}\cdots p_m^{k_m}
07

The multiplicative property of Euler's totient function

If two positive integers nn and mm are coprime, i.e., gcd⁡(n,m)=1\gcd(n,m)=1, then Euler's totient function satisfies φ(nm)=φ(n)φ(m)\varphi(nm)=\varphi(n)\varphi(m). This segment relies precisely on this property to decompose φ(n)\varphi(n) according to its prime factorization.

φ(nm)=φ(n)φ(m),gcd⁡(n,m)=1\varphi(nm)=\varphi(n)\varphi(m),\quad \gcd(n,m)=1
08

The standard form of prime factorization

Any positive integer nn can be written as a product of powers of distinct primes: n=p1k1p2k2⋯pmkmn=p_1^{k_1}p_2^{k_2}\cdots p_m^{k_m}. Here, pip_i are pairwise distinct primes, and kik_i are the corresponding exponents. This form provides the foundation for subsequent substitution into φ\varphi.

n=p1k1p2k2⋯pmkmn=p_1^{k_1}p_2^{k_2}\cdots p_m^{k_m}
09

Why we can split into a product of multiple φ values

Because powers of distinct primes, pikip_i^{k_i} and pjkjp_j^{k_j}, are coprime when i≠ji\neq j holds, we can repeatedly apply multiplicativity to write φ(p1k1⋯pmkm)\varphi(p_1^{k_1}\cdots p_m^{k_m}) as φ(p1k1)⋯φ(pmkm)\varphi(p_1^{k_1})\cdots\varphi(p_m^{k_m}).

φ(p1k1⋯pmkm)=φ(p1k1)⋯φ(pmkm)\varphi(p_1^{k_1}\cdots p_m^{k_m})=\varphi(p_1^{k_1})\cdots\varphi(p_m^{k_m})
10

The formula for Euler's totient function at prime powers

The video cites a previous result: if pp is a prime and kk is a positive integer, then φ(pk)=pk−pk−1\varphi(p^k)=p^k-p^{k-1}. This segment substitutes this formula individually into each prime power factor.

φ(pk)=pk−pk−1\varphi(p^k)=p^k-p^{k-1}
11

The crucial step of factoring out a common term from the difference expression

For each prime power factor, we have piki−piki−1=piki(1−1pi)p_i^{k_i}-p_i^{k_i-1}=p_i^{k_i}\left(1-\frac{1}{p_i}\right). After factoring out all instances of pikip_i^{k_i}, the remaining front product exactly recovers nn, while what remains are the correction factors corresponding to each prime factor.

piki−piki−1=piki(1−1pi)p_i^{k_i}-p_i^{k_i-1}=p_i^{k_i}\left(1-\frac{1}{p_i}\right)
12

General formula for Euler's totient function

If p1,…,pmp_1,\dots,p_m are all the distinct prime factors of nn, then φ(n)=n∏i=1m(1−1pi)\varphi(n)=n\prod_{i=1}^{m}\left(1-\frac{1}{p_i}\right). This is the standard closed-form expression derived in this segment.

φ(n)=n∏i=1m(1−1pi)\varphi(n)=n\prod_{i=1}^{m}\left(1-\frac{1}{p_i}\right)

Detailed learning notes

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

Symbols · 12

φ(n)\varphi(n)

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The narrator says, "That brings us to Euler's totient function φ(n)φ(n)."

  2. Formula
    Observation

    The screen displays "Euler's totient function φ(n)φ(n)" and "φ(n)φ(n): the number of integers from 1 to n that are coprime to n."

Symbol

φ(n)\varphi(n)

Meaning

Euler's totient function counts the number of integers coprime to n among those from 1 to n.

Domain

n is a positive integer; later in the video, the unique factorization case for n>1n > 1 is discussed.

p

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The narrator says, "Let p be a prime number."

  2. Formula
    Observation

    The screen displays "Let P be a prime." "Therefore, among the numbers from 1 to P, there are P−1P - 1 numbers coprime to P." "Therefore, φ(P)=P−1φ(P) = P - 1."

Uncertainties
  1. The uppercase P on screen and the lowercase p in the audio differ in case, but both represent a prime number mathematically.

Symbol

p

Meaning

Primes are used to study the values of Euler's totient function at primes and prime powers.

Domain

p is a prime number.

k

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The narrator says, "Among the numbers from 1 to p raised to the k-th power, all except multiples of p are coprime to p raised to the k-th power."

  2. Formula
    Observation

    The screen displays "Among the numbers from 1 to PkP^k, there are Pk−1P^{k-1} numbers not coprime to PkP^k." and "Therefore, φ(Pk)=Pk−Pk−1φ(P^k) = P^k - P^{k-1}."

Uncertainties
  1. The video does not explicitly specify the range of k; in the context of prime powers, k is conventionally understood to be a positive integer.

Symbol

k

Meaning

The exponent of the prime number p, appearing in pkp^k and pk−1p^{k-1}.

Domain

Not stated in the video; context implies it is a positive integer.

n

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover says, "If n is a positive integer greater than 1, then n can be uniquely factored into a product of prime numbers."

  2. Formula
    Observation

    The screen displays "Fundamental Theorem of Arithmetic: If n is a positive integer greater than 1, then n=p1k1⋅p2k2⋯pmkmn = p_1^{k_1} \cdot p_2^{k_2} \cdots p_m^{k_m}."

Symbol

n

Meaning

The positive integer greater than 1 in the Fundamental Theorem of Arithmetic.

Domain

n is an integer greater than 1.

pip_i

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The screen displays the factors p1p_1, p2p_2, …\ldots, pmp_m in the factorization.

  2. Audio
    Observation

    The voiceover reads term by term: "p1 raised to the power k1, times p2 raised to the power k2, times p3 raised to the power k3, continuing up to pmp_m raised to the power kmk_m."

Symbol

pip_i

Meaning

The prime factors of n in the Fundamental Theorem of Arithmetic, where i=1i = 1, 2, …\ldots, m.

Domain

pip_i is a prime number.

kik_i

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The screen displays the exponents k1k_1, k2k_2, …\ldots, kmk_m.

  2. Audio
    Observation

    The voiceover reads each term aloud: "k1th power, k2th power, k3th power, …\ldots, k_mth power."

Uncertainties
  1. The video does not explicitly state whether kik_i is a positive integer; in the context of the Fundamental Theorem of Arithmetic, it is usually a positive integer.

Symbol

kik_i

Meaning

The exponent of the prime factor pip_i in the unique factorization of n.

Domain

The video does not specify; according to context, it should be a positive integer.

m

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The image shows the factorization ending with pmkmp_m^{k_m}.

  2. Audio
    Observation

    The voiceover says, "multiply all the way up to pmp_m raised to the kmk_m-th power."

Uncertainties
  1. The video does not explicitly state the range of m; according to context, it should be the number of distinct prime factors.

Symbol

m

Meaning

The number of distinct prime factors of n.

Domain

The video does not specify; according to context, it should be a positive integer.

φ\varphi

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Expressions such as φ(n)φ(n), φ(nm), and φ(piki)φ(p_i^{k_i}) appear multiple times on screen.

Symbol

φ\varphi

Meaning

Euler's totient function, which counts the positive integers less than or equal to a given positive integer that are coprime to it.

Domain

positive integer

n, m

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The screen displays gcd(n,m)=1 and φ(nm)=φ(n)⋅φ(m)φ(n)\cdot φ(m).

Symbol

n, m

Meaning

two positive integers, required to be coprime in the discussion of multiplicativity.

Domain

positive integer

gcd

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The screen displays gcd(n,m)=1.

Symbol

gcd

Meaning

greatest common divisor; gcd(n,m)=1 means n and m are coprime.

Domain

pair of integers

∏i=1m\prod_{i=1}^m

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The final formula uses ∏i=1m(1−1/pi)\prod _{i=1}^m (1 - 1/p_i).

Symbol

∏i=1m\prod_{i=1}^m

Meaning

product notation, representing multiplication of factors from i=1i=1 to m.

Domain

finite product

pip_i, kik_i

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The screen displays n=p1k1⋅p2k2⋅p3k3⋅⋅⋅pmkmn = p_1^{k_1} \cdot p_2^{k_2} \cdot p_3^{k_3} \cdot \cdot \cdot p_m^{k_m}.

Symbol

pip_i, kik_i

Meaning

pip_i is the i-th distinct prime factor, and kik_i is its exponent in the prime factorization of n.

Domain

pip_i is a prime number, and kik_i is a positive integer.

Knowledge points · 7

Coprime status is determined by the greatest common divisor.

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover says, "If the greatest common divisor of this number and 6 is 1, then it is coprime to 6."

  2. Diagram
    Observation

    The image lists integers from 1 to 6 and highlights each integer one by one for checking.

Definition
Explanation

The video uses the concrete example "this number and 6" to explain: if the greatest common divisor of an integer and 6 is 1, then it is coprime to 6. This criterion applies when enumerating numbers coprime to a given integer n, from 1 to n.

Formula
gcd⁡(a,n)=1⟺aandnare coprime\gcd(a,n)=1 \Longleftrightarrow a\text{and}n\text{are coprime}
Conditions
  1. a and n are integers

  2. In the video example, n=6n = 6

Definition of Euler's totient function φ(n)φ(n)

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The narrator says, "We define φ(n)φ(n) as the number of integers coprime to n in the range from 1 to n."

  2. Formula
    Observation

    The screen displays "Euler's totient function φ(n)φ(n)" and "φ(n)φ(n): the number of integers coprime to n in the range from 1 to n."

Definition
Explanation

Euler's totient function phi of n is defined as the number of integers from 1 to n that are coprime to n. The earlier examples 1 to 6 are concrete illustrations of this definition: counting the numbers from 1 to 6 that are coprime to 6.

Formula
φ(n)=#{a∈Z:1≤a≤n, gcd⁡(a,n)=1}\varphi(n)=\#\{a\in\mathbb{Z}:1\le a\le n,\ \gcd(a,n)=1\}
Conditions
  1. n is a positive integer

  2. The counting range is from 1 to n

Prerequisites
  1. Coprime status is determined by the greatest common divisor.

Euler's totient function formula for prime powers

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The narrator says, "Therefore, φ(pk)=pk−pk−1φ(p^k) = p^k - p^{k-1}."

  2. Formula
    Observation

    The screen displays "∴ φ(Pk)=Pk−Pk−1φ(P^k) = P^k - P^{k-1}."

Uncertainties
  1. The video does not explicitly specify the range of k; in the context of prime powers, k is conventionally understood to be a positive integer.

Formula
Explanation

When p is a prime, among the numbers from 1 to pkp^k, exactly those divisible by p are not coprime to pkp^k, and there are pk−1p^{k-1} such numbers; therefore, the count of numbers coprime to pkp^k equals the total pkp^k minus the count of non-coprime numbers pk−1p^{k-1}.

Formula
φ(pk)=pk−pk−1\varphi(p^k)=p^k-p^{k-1}
Conditions
  1. p is a prime

  2. k is a positive integer, as indicated by context

Prerequisites
  1. Definition of Euler's totient function φ(n)φ(n)
  2. Coprime status is determined by the greatest common divisor.

The multiplicativity of Euler's totient function

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover states: "Next, Euler's totient function is multiplicative; that is, for two coprime integers n and m, φ(nm) = φ(n)φ(m)φ(n)φ(m)."

  2. Formula
    Observation

    The screen writes: φ(n)φ(n) is multiplicative, gcd(n, m) = 1, and φ(nm) = φ(n)⋅φ(m)φ(n) \cdot φ(m).

Definition
Explanation

The video describes Euler's totient function φ as multiplicative: when two positive integers n and m are coprime, φ(nm) equals the product of φ(n)φ(n) and φ(m)φ(m). This property is the key basis for later splitting φ(n)φ(n) according to its prime factorization.

Formula
φ(nm)=φ(n)⋅φ(m),gcd⁡(n,m)=1\varphi(nm)=\varphi(n)\cdot\varphi(m),\quad \gcd(n,m)=1
Conditions
  1. n and m are positive integers.

  2. gcd(n, m) = 1, meaning n and m are coprime.

Prime factorization form of a positive integer

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover says: "Because n equals p1 raised to the power k1, times p2 raised to the power k2, times p3 raised to the power k3, and so on up to pmp_m raised to the power kmk_m."

  2. Formula
    Observation

    The screen writes n=p1k1⋅p2k2⋅p3k3⋅⋅⋅pmkmn = p_1^{k_1} \cdot p_2^{k_2} \cdot p_3^{k_3} \cdot \cdot \cdot p_m^{k_m}.

Definition
Explanation

The video expresses a general positive integer n as the product of powers of distinct prime numbers. Here, pip_i denotes distinct prime factors, and kik_i denotes the exponent corresponding to each prime factor.

Formula
n=p1k1⋅p2k2⋅p3k3⋯pmkmn=p_1^{k_1}\cdot p_2^{k_2}\cdot p_3^{k_3}\cdots p_m^{k_m}
Conditions
  1. pip_i is a prime number

  2. The pip_i are pairwise distinct

  3. kik_i is a positive integer

Euler's totient function formula for prime powers

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The narrator says, "Substitute our second prime-number case."

  2. Formula
    Observation

    The screen replaces φ(piki)φ(p_i^{k_i}) with piki−piki−1p_i^{k_i} - p_i^{k_i - 1}.

Uncertainties
  1. The video does not reprove the prime-power formula in this segment; it only cites earlier material.

Formula
Explanation

The video cites the previously derived prime-power case: for a prime p and a positive integer k, φ(pk)=pk−pk−1φ(p^k) = p^k - p^{k - 1}. In this segment, it substitutes this expression for each prime-power factor to obtain the general formula.

Formula
φ(pk)=pk−pk−1\varphi(p^k)=p^k-p^{k-1}
Conditions
  1. p is a prime number

  2. k is a positive integer

Prerequisites
  1. Prime factorization form of a positive integer

General formula for Euler's totient function

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The narrator says, "Finally, we simplify using the product notation." "Ultimately, we have derived the general form of Euler's totient function."

  2. Formula
    Observation

    The screen finally displays φ(n)=n∏i=1m(1−1/pi)φ(n) = n \prod _{i=1}^m (1 - 1/p_i), highlighted in a yellow box.

Formula
Explanation

Derived from prime factorization and multiplicativity: if the distinct prime factors of n are p1p_1, ..., pmp_m, then φ(n)φ(n) equals n multiplied by the product of the factors (1−1/pi1 - 1/p_i) corresponding to each prime factor.

Formula
φ(n)=n∏i=1m(1−1pi)\varphi(n)=n\prod_{i=1}^{m}\left(1-\frac{1}{p_i}\right)
Conditions
  1. n is a positive integer

  2. p1p_1, ..., pmp_m are all the distinct prime factors of n

Prerequisites
  1. The multiplicativity of Euler's totient function
  2. Prime factorization form of a positive integer
  3. Euler's totient function formula for prime powers
Claims and conditions · 3

Euler's totient function evaluated at a prime

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover says "Because all numbers from 1 to p except p itself are coprime to p, the numbers from 1 to p that are coprime to p are p minus 1 in total, so phi of p equals p minus 1."

  2. Formula
    Observation

    The screen displays "Let P be a prime." "Therefore, among the numbers from 1 to P, there are P−1P - 1 numbers coprime to P." "Therefore, φ(P)=P−1φ(P) = P - 1."

Proposition
Statement

If p is a prime, then φ(p)=p−1φ(p) = p-1.

Hypotheses
  1. p is a prime

  2. φ(p)φ(p) is defined as the count of integers from 1 to p that are coprime to p

Quantifiers

Holds for all primes p.

Fundamental Theorem of Arithmetic

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover says, "First is the fundamental theorem of arithmetic. If n is a positive integer greater than 1, then n can be uniquely expressed as a product of primes."

  2. Formula
    Observation

    The screen displays: "Fundamental theorem of arithmetic: If n is a positive integer greater than 1, then n=p1k1⋅p2k2⋯pmkmn = p_1^{k_1} \cdot p_2^{k_2} \cdots p_m^{k_m}".

Uncertainties
  1. The video does not present a proof of the Fundamental Theorem of Arithmetic, nor does it explicitly state the full condition that the pip_i are distinct primes and the kik_i are positive integers.

Theorem
Statement

If n is a positive integer greater than 1, then n can be uniquely factored as a product of prime powers: n=p1k1p2k2⋯pmkmn = p_1^{k_1} p_2^{k_2} \cdots p_m^{k_m}.

Hypotheses
  1. n is a positive integer greater than 1

Quantifiers

Holds for all positive integers n satisfying n>1n > 1.

Powers of distinct primes are pairwise coprime

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover says, "Moreover, the p's are pairwise coprime."

  2. Formula
    Observation

    The terms pikip_i^{k_i} in context come from powers of distinct primes.

Proposition
Statement

If pip_i and pjp_j are distinct primes, then pikip_i^{k_i} and pjkjp_j^{k_j} are coprime, so Euler's totient function's multiplicativity applies to them.

Hypotheses
  1. pip_i and pjp_j are distinct primes

  2. kik_i and kjk_j are positive integers

Quantifiers

Holds for all indices i≠ji \ne j corresponding to distinct prime factors.

Derivations and proofs · 4

Enumerating the numbers from 1 to 6 that are coprime to 6

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover says, 'Clearly, we can enumerate every integer from 1 to 6,' then adds, 'By enumeration, we can easily see that only 1, 5, and 6 are coprime.'

  2. Diagram
    Observation

    The screen first displays 'Which numbers from 1 to 6 are coprime to 6?', then lists '1 2 3 4 5 6', and finally shows the large number '2'.

Numerical verification
Steps
  1. Expression
    Explanation

    Pose a counting problem: find the integers coprime to 1 from 6 to 6.

    Justification

    At the beginning of the video, the question is stated directly: 'Which numbers from 1 to 6 are coprime to 6?'

    Shown in the video
  2. Expression
    gcd⁡(a,6)=1\gcd(a,6)=1
    Explanation

    For each candidate integer a, use the greatest common divisor to test whether a is coprime to 6.

    Justification

    The voiceover explains, 'If the greatest common divisor of this number and 6 is 1, then it is coprime to 6.'

    Shown in the video
  3. Expression
    a∈{1,2,3,4,5,6}a\in\{1,2,3,4,5,6\}
    Explanation

    Enumerate all integers from 1 to 6.

    Justification

    The screen displays "1 2 3 4 5 6", and the voiceover says that each integer can be enumerated.

    Shown in the video
  4. Expression
    {1,5}\{1,5\}
    Explanation

    The numbers coprime to 6 are 1 and 5.

    Justification

    The voiceover explicitly states "Only 1, 5, and 6 are coprime."

    Shown in the video
  5. Expression
    22
    Explanation

    The numbers coprime to 6 are exactly 2 in number.

    Justification

    The voiceover says "There are two numbers coprime to 6", and the screen finally displays the large number "2".

    Shown in the video
Conclusion

The integers from 1 to 6 that are coprime to 6 are 1 and 5, so the count of coprime numbers in this range is 2.

From the property of primes, it follows that φ(p)φ(p) equals p minus 1.

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The narrator says, "Because all numbers from 1 to p except p itself are coprime to p, the numbers from 1 to p that are coprime to p are p minus 1."

  2. Formula
    Observation

    The screen writes line by line: "Let P be a prime." "Therefore, among the numbers from 1 to P, there are P−1P - 1 numbers coprime to P." "Therefore, φ(P)=P−1φ(P) = P - 1."

Proof
Steps
  1. Expression
    pis a prime numberp\text{is a prime number}
    Explanation

    Let the object of study, p, be a prime.

    Justification

    Both the screen and the voiceover begin with "Let p be a prime."

    Shown in the video
  2. Expression
    ∀a∈{1,2,…,p−1}, gcd⁡(a,p)=1\forall a\in\{1,2,\ldots,p-1\},\ \gcd(a,p)=1
    Explanation

    The integers from 1 to p, excluding p itself, are all coprime to p.

    Justification

    The narrator says, "Because all numbers from 1 to p, except p itself, are coprime to p."

    Shown in the video
  3. Expression
    p−1p-1
    Explanation

    The number of integers a satisfying 1≤a≤p1 \le a \le p and gcd(a, p) = 1 is p−1p - 1.

    Justification

    There are p numbers from 1 to p; after excluding p itself, p−1p - 1 remain.

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

    The value of Euler's totient function at a prime is obtained from its definition.

    Justification

    φ(p)φ(p) is defined as the number of integers from 1 to p that are coprime to p.

    Shown in the video
Conclusion

If p is a prime, then φ(p)=p−1φ(p) = p - 1.

φ(pk)φ(p^k) is derived from the count of multiples of p in prime powers.

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The narrator says, "Moreover, since p is prime, among the numbers from 1 to p raised to the k-th power, all except the multiples of p are coprime to p raised to the k-th power," then says, "There are p raised to the (k−1k - 1)-th power numbers not coprime to p raised to the k-th power," and finally says, "Subtracting the count of non-coprime numbers from the total gives the count of coprime numbers."

  2. Formula
    Observation

    The screen displays: "All numbers from 1 to PkP^k, except multiples of P, are coprime to PkP^k." "From 1 to PkP^k, there are Pk−1P^{k-1} numbers not coprime to PkP^k." "∴ φ(Pk)=Pk−Pk−1φ(P^k) = P^k - P^{k-1}."

Uncertainties
  1. The video does not explicitly specify the range of k; in the context of prime powers, k is conventionally understood to be a positive integer.

  2. The video does not elaborate on the proof that "among the numbers from 1 to pkp^k, exactly pk−1p^{k-1} are multiples of p."

Proof
Steps
  1. Expression
    pis a prime numberp\text{is a prime number}
    Explanation

    Continue using the previous definition of the prime number p.

    Justification

    The screen still displays "Let P be a prime number."

    Shown in the video
  2. Expression
    gcd⁡(a,pk)=1 ⟺ p∤a\gcd(a,p^k)=1\ \Longleftrightarrow\ p\nmid a
    Explanation

    Among the numbers from 1 to pkp^k, all except the multiples of p are coprime to pkp^k.

    Justification

    The voiceover says: "Among the numbers from 1 to p raised to the k-th power, all except the multiples of p are coprime to p raised to the k-th power."

    Shown in the video
  3. Expression
    pk−1p^{k-1}
    Explanation

    Among the numbers from 1 to pkp^k, there are pk−1p^{k-1} numbers not coprime to pkp^k.

    Justification

    The screen displays "1numbers in P to the power k that are not coprime to P to the power k are P to the power k minus1 of them, and the voiceover explains this simultaneously.

    Shown in the video
  4. Expression
    pk−pk−1p^k-p^{k-1}
    Explanation

    The count of coprime numbers equals the total count pkp^k minus the count of non-coprime numbers pk−1p^{k-1}.

    Justification

    The voiceover says: "Subtracting the count of non-coprime numbers from the total count gives the count of coprime numbers."

    Shown in the video
  5. Expression
    φ(pk)=pk−pk−1\varphi(p^k)=p^k-p^{k-1}
    Explanation

    We obtain Euler's totient function formula for prime powers.

    Justification

    This follows from the definition of φ(n)φ(n) and the counting in the previous step.

    Shown in the video
Conclusion

If p is a prime and k is a positive integer as understood from context, then φ(pk)=pk−pk−1φ(p^k) = p^k - p^{k-1}.

Deriving the general formula for Euler's totient function from the prime factorization.

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The screen sequentially writes the prime factorization of n, φ(n)=φφ(n) = φ(p1k1p_1^{k_1}⋯pmkmp_m^{k_m}), splits it into a product, substitutes the prime power formula, factors out n, and expresses the result as a product notation.

  2. Audio
    Observation

    The voiceover explains step by step: "Since Euler's totient function is multiplicative," "it can thus be split into this long product," "then we rearrange and factor out common terms," "and finally simplify using product notation."

Proof
Steps
  1. Expression
    n=p1k1⋅p2k2⋅p3k3⋯pmkmn=p_1^{k_1}\cdot p_2^{k_2}\cdot p_3^{k_3}\cdots p_m^{k_m}
    Explanation

    First write the positive integer n as a product of powers of distinct primes.

    Justification

    The prime factorization form directly given in the video.

    Shown in the video
  2. Expression
    φ(n)=φ(p1k1⋅p2k2⋅p3k3⋯pmkm)\varphi(n)=\varphi(p_1^{k_1}\cdot p_2^{k_2}\cdot p_3^{k_3}\cdots p_m^{k_m})
    Explanation

    Substitute the factorization of n into φ(n)φ(n).

    Justification

    Substitution of equal quantities.

    Shown in the video
  3. Expression
    φ(n)=φ(p1k1)⋅φ(p2k2)⋅φ(p3k3)⋯φ(pmkm)\varphi(n)=\varphi(p_1^{k_1})\cdot\varphi(p_2^{k_2})\cdot\varphi(p_3^{k_3})\cdots\varphi(p_m^{k_m})
    Explanation

    Split the expression of φ applied to a product into the product of φ-values at each prime power.

    Justification

    Use the multiplicativity of Euler's totient function; powers of distinct primes are pairwise coprime.

    Shown in the video
  4. Expression
    φ(n)=(p1k1−p1k1−1)⋅(p2k2−p2k2−1)⋯(pmkm−pmkm−1)\varphi(n)=(p_1^{k_1}-p_1^{k_1-1})\cdot(p_2^{k_2}-p_2^{k_2-1})\cdots(p_m^{k_m}-p_m^{k_m-1})
    Explanation

    Apply the earlier formula φ(pk)=pk−pk−1φ(p^k) = p^k - p^{k-1} to each prime power.

    Justification

    The video refers to "the second case involving primes."

    Shown in the video
  5. Expression
    φ(n)=p1k1p2k2⋯pmkm(1−1p1)(1−1p2)⋯(1−1pm)\varphi(n)=p_1^{k_1}p_2^{k_2}\cdots p_m^{k_m}\left(1-\frac{1}{p_1}\right)\left(1-\frac{1}{p_2}\right)\cdots\left(1-\frac{1}{p_m}\right)
    Explanation

    Factor pikip_i^{k_i} out of each term piki−piki−1p_i^{k_i} - p_i^{k_i-1}, leaving 1−1/pi1 - 1/p_i.

    Justification

    Algebraic factorization: piki−piki−1=piki(1−1/pi)p_i^{k_i} - p_i^{k_i - 1} = p_i^{k_i}(1 - 1/p_i).

    Shown in the video
  6. Expression
    φ(n)=n(1−1p1)(1−1p2)⋯(1−1pm)\varphi(n)=n\left(1-\frac{1}{p_1}\right)\left(1-\frac{1}{p_2}\right)\cdots\left(1-\frac{1}{p_m}\right)
    Explanation

    Recognize the product of the extracted prime powers back as n.

    Justification

    from the first step n=p1kn=p_1k sub1p sub2k sub2dot dot dot p sub m to the power k sub m.

    Shown in the video
  7. Expression
    φ(n)=n∏i=1m(1−1pi)\varphi(n)=n\prod_{i=1}^{m}\left(1-\frac{1}{p_i}\right)
    Explanation

    Compress all factors corresponding to prime factors using product notation.

    Justification

    Definition of product notation.

    Shown in the video
Conclusion

Obtain the general formula for Euler's totient function for any positive integer n: φ(n)=n∏i=1m(1−1/pi)φ(n) = n \prod _{i = 1}^m (1 - 1/p_i).

Worked examples · 1

Compute φ(100)φ(100) using Euler's multiplication method.

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover asks: "So how many numbers from 1 to 100 are coprime to 100?" Then it says: "Leonhard Euler proposed an algorithm: multiply 100 by 1 over 2, then by 4 over 5, yielding 40."

  2. Formula
    Observation

    The screen displays: "How many numbers from 1 to 100 are coprime to 100?" and "φ(100)=100×1/2×4/5=40φ(100) = 100 \times 1 / 2 \times 4 / 5 = 40".

  3. Diagram
    Observation

    The screen is filled with a numeric array from 1 to 100, and a portrait of Leonhard Euler appears.

Uncertainties
  1. The video does not explain in this segment1 and2 and4 and5 come from which prime factors of100 nor does it provide an enumeration verification process.

Problem

Find how many integers from 1 to 100 are coprime to 100.

Given
  1. The range is from 1 to 100.

  2. The target number is 100.

  3. The video gives Euler's algorithm: φ(100)=100×1/2×4/5φ(100) = 100 \times 1 / 2 \times 4 / 5.

Goal

Calculate the number of integers coprime to 100.

Steps
  1. Expression
    φ(100)=?\varphi(100)=?
    Explanation

    Reformulate the problem as computing Euler's totient function φ(100)φ(100).

    Justification

    The voiceover defines φ(n)φ(n) as the count of numbers coprime to n among the integers from 1 to n.

    Derived from the video
  2. Expression
    φ(100)=100×12×45\varphi(100)=100\times\frac12\times\frac45
    Explanation

    Perform the multiplication calculation using the Euler algorithm provided in the video.

    Justification

    The screen displays the formula directly, and the voiceover simultaneously reads: "Multiply 100 by 1, divide by 2, multiply by 4, divide by 5."

    Shown in the video
  3. Expression
    =40=40
    Explanation

    The result is 40.

    Justification

    The screen shows the equation ending with 40, and the voiceover says: "yields 40."

    Shown in the video
Answer

40

Verification

The video states, "When you enumerate them, you are surprised to find that this is actually correct," but this segment does not show actual enumeration-based verification.

Visual events · 5

Enumeration-and-filtering animation from 1 to 6

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    The screen first displays the question: "Which numbers from 1 to 6 are coprime with 6?", then lists: "1 2 3 4 5 6."

  2. Animation
    Observation

    The numbers are highlighted or recolored one by one, and finally the screen cuts to a large-sized number: "2."

Uncertainties
  1. The highlight color of some numbers varies slightly across frames and may not be consistently distinguishable, but its visual function is to mark the enumeration and filtering process.

Objects
  1. Question text: "Which numbers from 1 to 6 are coprime with 6?"

  2. Number sequence 1, 2, 3, 4, 5, 6

  3. Result number 2

Changes
  1. The number sequence appears one by one and is highlighted, indicating checking each integer from 1 to 6.

  2. At the end of the animation, a large numeral 2 indicates the count of integers satisfying the condition.

Invariants
  1. The enumeration range is always from 1 to 6.

  2. The criterion is given in the voice-over: the greatest common divisor with 6 equals 1.

Interpretation

This animation concretizes the abstract φ(6)φ(6) counting process as checking each integer from 1 to 6 one by one, and highlights the resulting count as 2.

Array from 1 to 100 and introduction of Euler’s formula

Clear evidence
Shown in the video
Evidence
  1. Diagram
    Observation

    The screen displays the question: 'How many integers from 1 to 100 are coprime to 100?', followed by a grid of numbers spanning from 1 to 100.

  2. Animation
    Observation

    A portrait of Leonhard Euler appears and moves to the upper-left corner, then the formula φ(100)=100×1/2×4/5=40φ(100)=100\times 1/2\times 4/5=40 appears.

Objects
  1. Number array from 1 to 100

  2. Portrait of Leonhard Euler

  3. Formula φ(100)=100×1/2×4/5=40φ(100)=100\times 1/2\times 4/5=40

Changes
  1. The number array expands from a local view to the full range from 1 to 100, emphasizing that brute-force enumeration is infeasible.

  2. After Euler's portrait appears, the screen shifts to the multiplicative formula and gives the result 40.

Invariants
  1. The object of interest is always 100.

  2. The counting range is always from 1 to 100.

Interpretation

Visually, a dense array of numbers illustrates the enumeration cost; then Euler's portrait and the multiplication formula introduce a more efficient method for computing φ(100)φ(100).

Derivation board for primes and prime powers

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Text appears line by line: 'Let P be a prime', '∴ φ(P)=P−1φ(P) = P - 1', 'The numbers from 1 to PkP^k that are not multiples of P are all coprime to PkP^k', '∴ φ(Pk)=Pk−Pk−1φ(P^k) = P^k - P^{k-1}'.

  2. Animation
    Observation

    The text appears line by line in order of derivation, with Euler's portrait remaining in the upper-left corner.

Objects
  1. Euler's portrait

  2. Prime assumption text

  3. The Euler totient function value of P equals P minus 1

  4. Text related to PkP^k

  5. The Euler totient function value of P raised to the k-th power equals P raised to the k-th power minus P raised to the (k minus 1)-th power

Changes
  1. The screen advances from the prime case to the prime-power case.

  2. Each row's conclusion builds layer by layer upon the previous row's conclusion.

Invariants
  1. The object of discussion remains the prime p and its powers pkp^k.

  2. The definition of Euler's totient function remains unchanged.

Interpretation

This visual process organizes the proof into line-by-line chalkboard writing: first obtaining the formula at primes, then deriving the formula at prime powers by excluding multiples of p.

Presentation of the Fundamental Theorem of Arithmetic formula

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The screen displays "Fundamental Theorem of Arithmetic: If n is a positive integer greater than 1, then n=p1k1⋅p2k2⋯pmkmn = p_1^{k_1} \cdot p_2^{k_2} \cdots p_m^{k_m}."

  2. Animation
    Observation

    The formula appears character by character, with Euler's portrait still in the upper-left corner.

Objects
  1. Title: "Fundamental Theorem of Arithmetic"

  2. The condition text reads: "If n is a positive integer greater than 1."

  3. Factorization expression: n=p1k1p2k2⋯pmkmn = p_1^{k_1} p_2^{k_2} \cdots p_m^{k_m}

Changes
  1. The formula unfolds step by step from the title and condition to the full product form.

Invariants
  1. The range condition for n remains that n is a positive integer greater than 1.

  2. The expression takes the form of a product of prime powers.

Interpretation

The visual prepares tools for the general integer case: first factor any n>1n > 1 into a product of prime powers.

Step-by-step display and highlighting of the derivation process

Clear evidence
Shown in the video
Evidence
  1. Animation
    Observation

    The formula appears line by line and expands downward; earlier lines fade out, leaving only the final formula.

  2. Diagram
    Observation

    Approximately 39 seconds later, the part p1k1⋯pmkmp_{1}^{k_{1}} \cdots p_m^{k_m} is highlighted in red, indicating that it equals n.

Objects
  1. Prime factorization expression

  2. Product expansion of φ

  3. Substitution expression for prime powers

  4. Expression after factoring out n

  5. Final product formula

Changes
  1. The formula builds row by row, starting from the prime factorization of n.

  2. The red highlight marks p1k1p_1^{k_1}⋯pmkmp_m^{k_m}.

  3. The final formula is emphasized with a yellow box.

  4. Intermediate steps fade out afterward, leaving only the conclusion.

Invariants
  1. The portrait in the upper-left corner remains visible throughout.

  2. The main derivation thread is always an equivalent transformation of the same φ(n)φ(n) expression.

Interpretation

The visual layout emphasizes that each step is an equivalent rewriting of φ(n)φ(n), and highlights the key observation: "the red part equals n", which bridges the expanded form back to n∏(1−1/pi)n\prod (1-1/p_i).

Misconceptions · 2

Mistakenly assumes enumeration one by one is also appropriate for large ranges.

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover says, "I bet someone in the live chat will say, 'That's easy—just enumerate them one by one!' But that would still be too operationally intensive."

  2. Diagram
    Observation

    The screen displays an array of numbers from 1 to 100.

Misconception

Faced with counting how many numbers between 1 and 100 are coprime to 100, assumes one can enumerate them one by one, just as for the range from 1 to 6.

Clarification

The video illustrates that enumerating one by one is "too operationally intensive" using a dense array of numbers from 1 to 100, then introduces Euler's totient function and the multiplicative algorithm.

Multiplicativity does not hold for arbitrary products.

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    Before stating φ(nm) = φ(n)⋅φ(m)φ(n)\cdot φ(m), the screen first writes gcd(n, m) = 1.

Misconception

One might mistakenly assume φ(nm) = φ(n)φ(m)φ(n)φ(m) holds for all n and m.

Clarification

The video explicitly writes the condition as gcd(n,m)=1, indicating that this multiplicative splitting is used only in the coprime case.

Concept relations · 8

Coprime status is determined by the greatest common divisor. → Definition of Euler's totient function φ(n)φ(n)

Clear evidence
Derived from the video
Evidence
  1. Audio
    Observation

    First, "having greatest common divisor 1" explains being coprime to 6; then φ(n)φ(n) is defined as the count of integers from 1 to n that are coprime to n.

  2. Formula
    Observation

    The visual transitions from enumerating numbers from 1 to 6 to displaying "φ(n)φ(n): the count of integers from 1 to n that are coprime to n."

Prerequisite
Explanation

The counting object of Euler's totient function is determined by "coprimality", and the video defines coprimality via greatest common divisor equal to 1; thus, this criterion is a prerequisite concept for understanding φ(n)φ(n).

Definition of Euler's totient function φ(n)φ(n) → Euler's totient function evaluated at a prime

Clear evidence
Derived from the video
Evidence
  1. Formula
    Observation

    The visual first gives the definition of φ(n)φ(n), then writes φ(P)=P−1φ(P) = P - 1 under the assumption that P is prime.

  2. Audio
    Observation

    The narrator first defines φ(n)φ(n), then says, "Let's begin studying the properties of Euler's totient function with simple prime numbers."

Proof dependency
Explanation

The conclusion φ(p)=p−1φ(p) = p - 1 relies on the counting definition of φ(n)φ(n): first identify which numbers from 1 to p are coprime to p, then count how many there are.

Euler's totient function evaluated at a prime → Euler's totient function formula for prime powers

Clear evidence
Derived from the video
Evidence
  1. Formula
    Observation

    The screen adds a line about pkp^k to the existing statements "Let p be a prime" and "φ(p)=p−1φ(p) = p - 1."

  2. Audio
    Observation

    The narrator says, "Also, because p is prime, the numbers from 1 to p raised to the k-th power..."

Generalizes
Explanation

The prime power formula generalizes the prime case from p to pkp^k, still excluding non-coprime numbers by focusing on multiples of the prime p.

Definition of Euler's totient function φ(n)φ(n) → Compute φ(100)φ(100) using Euler's multiplication method.

Clear evidence
Derived from the video
Evidence
  1. Formula
    Observation

    The screen first displays φ(100)=100×1/2×4/5=40φ(100) = 100 \times 1 / 2 \times 4 / 5 = 40, then shows "Euler's totient function φ(n)φ(n)" and its definition.

  2. Audio
    Observation

    The narrator first asks how many numbers from 1 to 100 are coprime to 100, then defines φ(n)φ(n).

Application
Explanation

The example φ(100)φ(100) is a concrete application of the definition of Euler's totient function: counting the integers from 1 to 100 that are coprime to 100.

Fundamental Theorem of Arithmetic → Definition of Euler's totient function φ(n)φ(n)

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The narrator says, "For the general case, things become somewhat more complicated; I will first introduce two important properties. The first is the fundamental theorem of arithmetic."

  2. Formula
    Observation

    The screen then displays n=p1k1p2k2⋯pmkmn = p_1^{k_1} p_2^{k_2} \cdots p_m^{k_m}.

Uncertainties
  1. This segment introduces only the fundamental theorem of arithmetic, without showing how it is further used in the general formula for φ(n)φ(n).

Application
Explanation

The video presents the fundamental theorem of arithmetic as a prerequisite tool for handling Euler's totient function for general integers n, although this segment does not yet complete the subsequent derivation.

The multiplicativity of Euler's totient function → Deriving the general formula for Euler's totient function from the prime factorization.

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover says, "Since Euler's totient function is multiplicative... it can be split into this large product."

  2. Formula
    Observation

    The on-screen expression changes from φ(p1k1⋅⋅⋅pmkm)φ(p_1^{k_1}\cdot \cdot \cdot p_m^{k_m}) to the product of all φ(piki)φ(p_i^{k_i}).

Proof dependency
Explanation

Multiplicativity is the justification for splitting φ(n)φ(n) into multiple prime-power factors according to its prime factorization.

Euler's totient function formula for prime powers → General formula for Euler's totient function

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover says, "Plug in our second case—the prime-power case."

  2. Formula
    Observation

    Each φ(piki)φ(p_i^{k_i}) on screen is replaced by piki−piki−1p_i^{k_i}-p_i^{k_i-1}.

Proof dependency
Explanation

Deriving the general formula relies on the prime-power case formula as a substitution module.

Prime factorization form of a positive integer → General formula for Euler's totient function

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The screen first displays the prime factorization of n, then highlights p1k1⋅⋅⋅pmkmp_1^{k_1}\cdot \cdot \cdot p_m^{k_m} as n.

Application
Explanation

Prime factorization provides the sources of n and all pip_i appearing in the formula.

Find an answer · 9

How is Euler's totient function φ(n)φ(n) defined?

Clear evidence
Derived from the video
Evidence
  1. Formula
    Observation

    The screen displays "φ(n)φ(n): the number of integers between 1 and n that are coprime to n."

  2. Audio
    Observation

    The voiceover says, "We define φ(n)φ(n) as the number of integers between 1 and n that are coprime to n."

Knowledge points
  1. Definition of Euler's totient function φ(n)φ(n)
  2. Coprime status is determined by the greatest common divisor.

How can we use the greatest common divisor to determine whether two numbers are coprime?

Clear evidence
Derived from the video
Evidence
  1. Audio
    Observation

    The voiceover says, "If the greatest common divisor of this number and 6 is 1, then it is coprime to 6."

Knowledge points
  1. Coprime status is determined by the greatest common divisor.

Why does a prime number p satisfy φ(p)=p−1φ(p) = p - 1?

Clear evidence
Derived from the video
Evidence
  1. Formula
    Observation

    The screen displays "∴ φ(P)=P−1φ(P) = P - 1."

  2. Audio
    Observation

    The voiceover explains that all numbers from 1 to p, except p itself, are coprime to p.

Knowledge points
  1. Euler's totient function evaluated at a prime
  2. Definition of Euler's totient function φ(n)φ(n)

How is φ(pk)=pk−pk−1φ(p^k) = p^k - p^{k-1} derived?

Clear evidence
Derived from the video
Evidence
  1. Formula
    Observation

    The screen displays "∴ φ(Pk)=Pk−Pk−1φ(P^k) = P^k - P^{k-1}."

  2. Audio
    Observation

    The voiceover says, "Subtracting the count of non-coprime numbers from the total count gives the count of coprime numbers."

Knowledge points
  1. Euler's totient function formula for prime powers
  2. φ(pk)φ(p^k) is derived from the count of multiples of p in prime powers.

How many numbers from 1 to 100 are coprime to 100?

Clear evidence
Derived from the video
Evidence
  1. Formula
    Observation

    The screen displays "φ(100)=100×1/2×4/5=40φ(100) = 100 \times 1 / 2 \times 4 / 5 = 40."

  2. Audio
    Observation

    The narrator asks how many numbers from 1 to 100 are coprime to 100, and gives the result 40.

Uncertainties
  1. This segment does not explain the origins of 1/21/2 or 4/54/5.

Knowledge points
  1. Compute φ(100)φ(100) using Euler's multiplication method.
  2. Definition of Euler's totient function φ(n)φ(n)

How is the Fundamental Theorem of Arithmetic stated in this video?

Clear evidence
Derived from the video
Evidence
  1. Formula
    Observation

    The screen displays "Fundamental Theorem of Arithmetic: If n is a positive integer greater than 1, then n=p1k1⋅p2k2⋯pmkmn = p_1^{k_1} \cdot p_2^{k_2} \cdots p_m^{k_m}."

Knowledge points
  1. Fundamental Theorem of Arithmetic

Why can φ(p1k1p2k2⋅⋅⋅pmkm)φ(p_1^{k_1}p_2^{k_2}\cdot \cdot \cdot p_m^{k_m}) be split into φ(p1k1)φ(p2k2)⋅⋅⋅φ(pmkm)φ(p_1^{k_1})φ(p_2^{k_2})\cdot \cdot \cdot φ(p_m^{k_m})?

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The voiceover explains, "Since Euler's totient function is multiplicative, and since the pip_i are pairwise coprime, it can be split into this large product."

Knowledge points
  1. The multiplicativity of Euler's totient function
  2. Powers of distinct primes are pairwise coprime
  3. Deriving the general formula for Euler's totient function from the prime factorization.

What is the general formula for Euler's totient function?

Clear evidence
Shown in the video
Evidence
  1. Formula
    Observation

    The final formula is highlighted with a yellow box.

Knowledge points
  1. General formula for Euler's totient function

Why can we directly replace the red part with n in the derivation?

Clear evidence
Shown in the video
Evidence
  1. Audio
    Observation

    The narrator says, "Notice that the red part is our n."

  2. Diagram
    Observation

    p1k1⋅⋅⋅pmkmp_1^{k_1}\cdot \cdot \cdot p_m^{k_m} is highlighted in red.

Knowledge points
  1. Prime factorization form of a positive integer
  2. Deriving the general formula for Euler's totient function from the prime factorization.
Coverage and review notes

Covered · At the beginning, the question "Which numbers from 1 to 6 are coprime to 6?" is raised, setting up the objects for subsequent definitions of coprimality and Euler's totient function.

Covered · By enumerating numbers from 1 to 6 and checking coprimality using greatest common divisor equal to 1, we obtain 1 and 5, totaling 2 numbers.

Covered · The problem is extended to the range from 1 to 100, pointing out that exhaustive enumeration is costly, and then Euler's algorithm is given: φ(100)=100×1/2×4/5=40φ(100) = 100 \times 1 / 2 \times 4 / 5 = 40.

Covered · Euler's totient function φ(n)φ(n) is formally defined as the number of integers from 1 to n that are coprime to n.

Covered · Let p be a prime; explain that among the integers from 1 to p, all except p itself are coprime to p, yielding φ(p)=p−1φ(p) = p - 1.

Covered · Generalize to pkp^k by excluding multiples of p, obtaining φ(pk)=pk−pk−1φ(p^k) = p^k - p^{k-1}.

Covered · A transitional explanation notes that the general case is more complex, and two important properties will be introduced first; this segment serves as spoken introduction paving the way for the Fundamental Theorem of Arithmetic.

Covered · State the Fundamental Theorem of Arithmetic: if n is a positive integer greater than 1, then n=p1k1p2k2⋯pmkmn = p_1^{k_1} p_2^{k_2} \cdots p_m^{k_m}.

Covered · State the multiplicativity of Euler's totient function and the coprimality condition.

Covered · Write the prime factorization of n.

Covered · Use multiplicativity to express φ(n)φ(n) as a product of values at prime powers.

Covered · Substitute the prime power formula.

Covered · Factor out common terms and recognize the product of prime powers as n.

Covered · Write the final general formula using product notation and emphasize the conclusion.

Covered · Closing thanks and farewell to next episode, with no new mathematical content.

Explore the knowledge in this video

Reviewed subject paths

Questions this video answers

Meet the concept

↗
Understand why

↗
Understand why

↗
Meet the concept

↗
Find a method

↗