Why does a prime number p satisfy ?
For a prime number , the only positive divisors are 1 and itself. Any integer in the range from 1 to that is not equal to will not share the factor . Since is prime, it has no other factors, so for all from 1 to . There are exactly such integers, so .
Conditions
- is a prime number.
- is defined as the count of integers from 1 to that are coprime to .
Reasoning, step by step
- Let be a prime number.
- Consider the integers from 1 to .
- Note that all integers from 1 to do not contain as a factor.
- Since is prime, its only factors are 1 and . Therefore, any integer less than shares no common factors with other than 1.
- This means for all .
- Count the number of such integers, which is .
- Conclude that .
Example
Let . The integers from 1 to 5 are 1, 2, 3, 4, 5. The greatest common divisors with 5 are: , , , , . The integers coprime to 5 are 1, 2, 3, and 4. There are such integers. Thus, .
Common misconceptions
- Thinking that 1 is not coprime to (1 is coprime to every positive integer).
- Believing that counts the number of primes less than (it counts all integers coprime to , not just primes).
Watch the explanation
1:02 – 1:12Watch this moment ↗
Explore next
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.