Euler phi function
For any positive integer , is the number of positive integers less than or equal to which are coprime to . The function is known as the function. This function may also be denoted by .
Among the most useful of are the facts that it is multiplicative (meaning if , then ) and that for any prime and any positive integer . These two facts combined give a numeric computation of for all positive integers:
(1) |
For example,
From equation (1), it is clear that for any positive integer with equality holding exactly when . This is because
with equality holding exactly when .
Another important fact about the function is that
where the sum extends over all positive divisors of . Also, by definition, is the number of units in the ring of integers modulo .
The sequence appears in the OEIS as sequence http://www.research.att.com/ njas/sequences/A000010A000010.