Euler's totient: how many numbers up to 100 are coprime to 100?
Need a hint?
Remove the multiples of 2 and of 5, which are the prime factors of 100.
φ(100) = 40: forty of the numbers 1 to 100 are coprime to 100.
How to work it out
A number shares a factor with 100 exactly when it is divisible by 2 or by 5. Among 100 numbers: 50 are even, 20 are multiples of 5, and 10 are multiples of 10 (counted twice).
So the numbers divisible by 2 or 5 are , leaving . The same count as a formula:
(1)
LaTeX source of the formulas on this page
\[ 40 \] \[ \varphi(100)=100\left(1-\frac12\right)\left(1-\frac15\right)=40 \]
Questions
What is the answer to: Euler's totient: how many numbers up to 100 are coprime to 100??
φ(100) = 40: forty of the numbers 1 to 100 are coprime to 100.
What is the key idea?
Count by inclusion–exclusion: multiply by (1 − 1/p) for each prime factor p.
Is there a hint?
Remove the multiples of 2 and of 5, which are the prime factors of 100.