Questions: Euler's Totient Function

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

What is φ(30)? (30 = 2 × 3 × 5)

Aφ(30) = 14, because you remove multiples of 2, 3, and 5 from 1–30
Bφ(30) = 8, using the formula 30 × (1 − 1/2) × (1 − 1/3) × (1 − 1/5) = 8
Cφ(30) = 12, because 30 has 3 prime factors and each contributes 4 coprime integers
Dφ(30) = 15, because exactly half of the integers up to 30 share no factor of 2
Question 2 Multiple Choice

For any prime number p, φ(p) = p − 1. Why?

ABecause all even numbers less than p are not coprime to p, leaving p − 1 odd numbers
BBecause the only positive factor of a prime p is 1 and p itself, so all integers from 1 to p−1 are coprime to p
CBecause the multiplicative group mod p has exactly p − 1 generators
DBecause p − 1 is always even, ensuring the group has exactly two generators
Question 3 True / False

φ(n) equals the number of elements in the multiplicative group of integers modulo n — that is, the count of residues in {1, ..., n−1} that have multiplicative inverses mod n.

TTrue
FFalse
Question 4 True / False

φ(mn) = φ(m)φ(n) for most positive integers m and n.

TTrue
FFalse
Question 5 Short Answer

Explain why knowing φ(n) for n = pq (a product of two large primes) is computationally easy if you know p and q, but essentially impossible if you only know n — and why RSA's security depends on this.

Think about your answer, then reveal below.