How is derived?
To derive , we count the integers from 1 to that are coprime to . An integer is not coprime to if and only if it shares a prime factor with . Since is the only prime factor of , the non-coprime integers are exactly the multiples of . There are multiples of in the range . Subtracting these from the total gives the count of coprime integers: .
Conditions
- is a prime number.
- is a positive integer (implied by context).
- The counting range is from 1 to inclusive.
Reasoning, step by step
- Consider the integers from 1 to .
- Identify the condition for an integer to NOT be coprime to : .
- Since is the only prime factor of , if and only if divides .
- Count the number of multiples of in the range . These are .
- The number of such multiples is .
- Subtract the count of non-coprime integers from the total count of integers: .
- Conclude that .
Example
Let and , so . The integers from 1 to 8 are 1, 2, 3, 4, 5, 6, 7, 8. The multiples of 2 are 2, 4, 6, 8 (there are of them). The integers coprime to 8 are 1, 3, 5, 7. The count is . Using the formula: .
Common misconceptions
- Thinking that all even numbers are not coprime to regardless of (only multiples of the specific prime are excluded).
- Forgetting that the range includes itself, which is a multiple of and thus not coprime.
Watch the explanation
1:12 – 1:35Watch this moment ↗
Explore next
Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.