Continuing from my previous post, we are in the middle of proving that satisfies the same equation as , that is,
and that therefore for all , that is, is the sum of all the th primitive roots of unity.
We had gotten as far as the following lemma:
Subset parity lemma: any nonempty finite set has an equal number of even-sized and odd-sized subsets.
In fact, this lemma is the only remaining piece of the proof: if we can prove this then we will have a complete proof that . Just for fun, we’re actually going to consider two different proofs of this lemma today.
The first proof
The first proof will be by a combinatorial or counting argument, and was suggested in a comment by Andrey Mokhov. The idea is to match up the subsets in such a way that:
- Each subset is matched with exactly one other subset, that is, the matching is 1-1.
- Each even subset is matched with an odd subset, and vice versa.
Since the subsets are in pairs and each pair has one even and one odd subset, the inescapable conclusion will be that there are the same number of even and odd subsets. For example, suppose there are a bunch of people in a room and you tell them to get into pairs where each pair has one person with a hat and one person without a hat. If they are able to do this exactly, with no unpaired people left over, then you know (without actually having to count people or hats!) that there must be an equal number of hatted and hatless people.
Call the entire set . Let’s first consider the case where has an odd number of elements. How will we match up its subsets? That is, given some subset , which other subset should be matched with? A natural idea—which turns out to be the right one in this case—is to match with its complement , that is, the subset of elements from which are not in . Since the complement of ’s complement is again (and also because cannot be its own complement), this does indeed put the subsets of into pairs. Also, if is even, then (and vice versa if is odd). So each pair has one even and one odd subset.
A picture will probably help. Here’s an example where . As you can check, each row in the picture is a pair of subsets which are each other’s complement, with one even subset and one odd subset:
Now, what about if is even? Matching with doesn’t work anymore, since they have the same parity—both are even or both are odd. But we can use a cute trick to fix things. Pick some particular element (note, this is the place in the proof where we depend on the assumption that is nonempty!)—for example, we might pick the smallest element if they can be ordered, but it really doesn’t matter which one we pick. Previously, when complementing a subset , we “flipped” the membership of each element of : if is element of , then is not an element of , and vice versa. Now we do the same, except that we don’t flip : if we keep it; if we leave it out. But we still flip all the other elements. Here’s an example when :
Note how we match all the sets that don’t have the smallest (blue) element with each other, and likewise all the sets that do have the smallest element are matched with each other. But within each pair, all the elements other than the smallest one are flipped.
You can convince yourself that this does indeed match up all the subsets into pairs. Moreover, each pair has one even and one odd subset, because the sizes of the paired sets add up to an odd number: if they don’t contain , or if they do. QED.
And that’s it for the first proof! We’ve shown that any nonempty finite set has the same number of even and odd subsets, because we can always match them up perfectly.
Binomial coefficient sums
And now for a small tangent. Remember that a set of size has subsets of size , where is a binomial coefficient, or an entry in Pascal’s Triangle. Since we now know there are the same number of even and odd subsets, if we add when is even and subtract when is odd, we must get zero:
That is, the alternating sum of each row of Pascal’s Triangle (besides the zeroth row) is 0:
and so on. As you can see, this is already really obvious for odd rows, for example, , since equal numbers cancel out. This is why in some sense the proof was so easy for odd : we just took the complement of each . However, for even rows, such as , it is not as obvious: why should we have ? So the proof for even required a bit more cleverness.
In any case, this discussion of binomial coefficiencts brings us to:
The second proof
Set and . Then the Binomial Theorem says that
And voila! The fact that this sum is zero is the same as saying that there are the same number of even and odd subsets. So we can see that the subset parity lemma is really just a special case of the Binomial Theorem. QED.
Which proof is better? I like them both. The second proof is really short, and would be your best bet to quickly communicate the idea of the proof to someone who already knows the Binomial Theorem. On the other hand, although it’s longer, the first proof is really cute and feels simpler somehow—it doesn’t depend on the Binomial Theorem and doesn’t even use any actual numbers or equations.
So, where are we? We’ve proved the subset parity lemma. But this means that
since we saw that this amounts to looking at subsets of the set of unique prime factors of , and adding for even subsets and for odd subsets.
This proves that (the sum of primitive th roots of unity) since satisfies the same equation. But it’s also a useful fact in its own right, will play an important role in our continuing exploration of the Möbius function .