Theorem 4.9: Let S be a nonempty set with n elements. If
then
Proof: If #(S ) = n then by Definition 4.5, there exists a one to one correspondence
Let
Define a function
by
Define a function
by
We must show that h is a one to one correspondence. To show that it is one to one, let
By the definition of h,
Since the domain of h does not include n - 1, we know that neither x nor y are equal to n - 1. If
then
and
Since f is one to one, we conclude that g (y ) = j. The only element that g maps to j is n - 1, so
Otherwise, g(x) = x, and since f is one to one, it follows that
Since x is neither j nor n - 1, y is also neither j nor n - 1, and we conclude that
To see that h is onto, let
If
then
If x = f(n - 1), then