Proofs of totient identities
From Wikipedia, the free encyclopedia
- This mathematics article is devoted entirely to providing mathematical proofs and support for claims and statements made in the article totient function. This article is currently an experimental vehicle to see how well we can provide proofs and details for a math article without cluttering up the main article itself. See Wikipedia:WikiProject Mathematics/Proofs for some current discussion. This article is "experimental" in the sense that it is a test of one way we may be able to incorporate more detailed proofs in Wikipedia.
This page provides proofs for identities involving the totient function and the Möbius function μ(k).
Contents |
[edit] Sum of integers relatively prime to and less than or equal to n
The proof of the identity
and the sum extends over is by induction on n. Start with n = 2, which gives
and the basis for the induction is established. For the induction step, first observe that
Working with the last term, we obtain
where the last equality follows by induction (the sum is over 1 < d < n). Additional simplification yields
or
Substituting back into the original equation, we find that
or
QED.
Another, more elementary proof uses the fact that
because if d | n and d | k then d | n − k and if d | n and d | (n − k) then d | n − (n − k) = k.
This means that for n > 2 we may group the k that are relatively prime to n into pairs
- .
The case k = n / 2 does not occur because n / 2 is not an integer when n is odd, and when n is even, we have (n / 2,n) = n / 2 > 1 because we assumed that n > 2. There are
such pairs, and the constituents of each pair sum to
hence
The case n = 2 is verified by direct substitution as in the proof by induction and hence may be included in the formula.
[edit] Proofs of totient identities involving the floor function
The proof of the identity
is by mathematical induction on n. The base case is n = 1 and we see that the claim holds:
- .
For the induction step we need to prove that
The key observation is that
so that the sum is
Now the fact that
is a basic totient identity. To see that it holds, let be the prime factorization of n+1. Then
by definition of μ(k). This concludes the proof.
An alternate proof proceeds by substituting directly into the left side of the identity, giving
Now we ask how often the term occurs in the double sum. The answer is that it occurs for every multiple k of d, but there are precisely such multiples, which means that the sum is
as claimed.
The trick where zero values of are filtered out may also be used to prove the identity
The base case is n = 1 and we have
and it holds. The induction step requires us to show that
Next observe that
This gives the following for the sum
Treating the two inner terms separately, we get
The first of these two is precisely as we saw earlier, and the second is zero, by a basic property of the Möbius function (using the same factorization of n + 1 as above, we have .) This concludes the proof.
This result may also be proved by inclusion-exclusion. Rewrite the identity as
Now we see that the left side counts the number of lattice points (a, b) in [1,n] x [1,n] where a and b are relatively prime to each other. Using the sets Ap where p is a prime less than or equal to n to denote the set of points where both coordinates are divisible by p we have
This formula counts the number of pairs where a and b are not relatively prime to each other. The cardinalities are as follows:
and the signs are , hence the number of points with relatively prime coordinates is
but this is precisely and we have the claim.
[edit] Average order of the totient
We will use the last formula of the preceding section to prove the following result:
Using we have the upper bound
and the lower bound
which is
Working with the last two terms and using the asymptotic expansion of the nth harmonic number we have
and
Now we check the order of the terms in the upper and lower bound. The term is by comparison with ζ(2), where ζ(s) is the Riemann zeta function. The next largest term is the logarithmic term from the lower bound.
So far we have shown that
It remains to evaluate asymptotically, which we have seen converges. The Euler product for the Riemann zeta function is
Now it follows immediately from the definition of the Möbius function that
This means that
where the integral was used to estimate But and we have established the claim.
[edit] Average order of phi(n)/n
The material of the preceding section, together with the identity
also yields a proof that
Reasoning as before, we have the upper bound
and the lower bound
Now apply the estimates from the preceding section to obtain the result.
[edit] Inequalities
We first show that
The latter holds because when n is a power of a prime p, we have
which gets arbitrarily close to 1 for p large enough.
To see the former, let n be the product of the first k primes, call them p1,p2,... etc. Let
Then
a harmonic number. Hence
and thus r gets arbitrarily close to zero.
We use the same factorization of n as in the first section to prove that
- .
Note that
which is
The upper bound follows immediately since
We come arbitrarily close to this bound when n is prime. For the lower bound, note that
where the product is over all primes. We have already seen this product, as in
so that
and we have the claim. The values of n that come closest to this bound are products of the first k primes.
[edit] External links
- Chris K. Caldwell, What is the probability that gcd(n,m)=1?