UVa 10299
From Algorithmist
Contents |
[edit] 10299 - Relatives
[edit] Summary
Find number of integers less than n which is relatively prime to n.
[edit] Explanation
What they are asking for is actually to find the value of the Euler's Phi function for n. So just apply the formula to find the Euler's Phi function and you would get the answer.
[edit] Input
7 12 0
[edit] Output
6 4

