Skip to main content
Logo image

Section 9.4 Number of Subsets

We want to develop a formula for the number of distinct subsets of a given set. We begin by considering a few examples to help us develop a pattern.

Example 9.35. All subsets and the number of subsets.

We list all distinct subsets of certain sets and count these subsets to find the number of distinct subsets.
  1. The only subset of {} is {}. Thus {} has one subset.
  2. The subsets of {1} are {} and {1}. Thus {1} has two distinct subsets.
  3. The subsets of {1,2} are {}, {1}, {2}, and {1,2}. Thus {1,2} has four distinct subsets.
  4. The subsets of {1,2,3} are {}, {1}, {2}, {3}, {1,2}, {1,3}, {2,3}, and {1,2,3}. Thus {1,2,3} has eight distinct subsets.
In the video in Figure 9.36 we continue our investigation and present a formula for the number of subsets of a finite set. We give a detailed proof of the theorem below.
Figure 9.36. Number of Subsets by Matt Farmer and Stephen Steward
In order to develop the desired formula for the number of distinct subsets of a given set, let us systematically consider how we can build up the lists of subsets for the sets in Example 9.35.
  • The set with no elements:.
    We have already seen that {} has the single subset {}.
  • Sets with one element:.
    If we put in one element, say a1, to our set and consider the new set {a1}, we still have the subset {} from the previous set. However, we also have a new subset — the subset we get by including in that new element a1 to the existing subset. The new subset is {a1}, giving us the two distinct subsets {} and {a1}.
  • Sets with two elements:.
    Now, we do the same for a set with two elements. We consider the new set {a1,a2}. Just as the set {a1} the set {a1,a2} has the subsets {} and {a1}. However, we also have two new subsets, namely the subsets we get by putting the new element a2 into the existing two subsets. The new subsets are {a2} and {a1,a2}, giving us the four distinct subsets {}, {a1}, {a2}, and {a1,a2}.
  • Sets with three elements:.
    For clarity, we will do this one more time. If we put in the element a3 and consider the new set {a1,a2,a3}, we still have the four subsets {}, {a1}, {a2}, and {a1,a2} from the previous set. However, we also have four new subsets — the subsets we get by putting the new element a3 into the existing four subsets. The new subsets are {a3}, {a1,a3}, {a2,a3}, and {a1,a2,a3}, giving us the eight distinct subsets
    {}, {a1}, {a2}, {a1,a2}, {a3}, {a1,a3}, {a2,a3} and {a1,a2,a3}
Notice that each time we put in an extra element, we double the number of distinct subsets. We now show that this observation is true independent of the number of elements in the set without the extra element. We start with a set with n elements (for some nN) and show that a set with n+1 elements has twice as many distinct subsets.
  • Sets with n elements:.
    Let A be a set that contains the n distinct elements a1,a2,a3,,an, that is, A={a1,a2,a3,,an}. Assume we know that A has the m subsets S1,,Sm. Let an+1 be an object not contained in A. From the list S1,,Sm of subsets of A, we construct all subsets of the set {a1,,an,an+1}. The subsets of {a1,,an+1} that do not contain an+1 are S1,,Sm. So it remains to consider all subsets of {a1,,an,an+1} that contain an+1. Let T1,,Tm be the sets obtained by including the element an+1 to S1,,Sm, respectively. Now, the 2m sets S1,,Sm,T1,,Tm are all subsets of A.
With each additional element the number of subsets doubles, this observation yields the answer to the Checkpoint 9.37.

Checkpoint 9.37. Number of subsets of a set with one more element.

Let A={a1,a2,a3,,an}.
Let N be the number of distinct subsets of A.
Let b be an element not contained in A.
Let B={a1,a2,a3,,an,b}, that is, B contains all elements of A and the additional element b.
What is the number of distinct subsets of B ?
  • N2
  • N+2
  • N2
  • N/2
  • N1
  • 2N
  • N
  • N+1
Since the empty set has one subset and each additional element doubles the number of subsets, a set with n elements has
1222n copies of 2=2n
distinct subsets. We have proven the following result.
This formula makes it easy for us to determine the number of subsets.

Problem 9.39. The number of subsets of Z11.

Find the number of distinct subsets of Z11.
Solution.
We have Z11={1,2,3,,10}. So #Z11=10. By the formula in Theorem 9.38 the number of distinct subsets of Z11 is
2#Z11=210=1024.
Now try yourself.

Checkpoint 9.40. Cardinality and number of subsets.

Let S=9,10,11,...,17.
The cardinality of S is:
Thus the number of distinct subsets of 9,10,11,...,17 is:
The formulas for the number of distinct subsets also have more practical applications.

Problem 9.41. Number of choices of pizza.

Mario’s Pizza offers the following toppings: onions, mushrooms, peppers, olives, and spinach. How many different types of pizza can be ordered using these toppings?
Solution.
Let T={ onions , mushrooms , peppers , olives , spinach } be the set of toppings. Each pizza would be made using a subset of these toppings, so the number of different types of pizza that can be ordered would correspond to the number of distinct subsets of the set T of toppings. We have #T=5. So T has 2#T=25=32 subsets. Thus 32 different pizzas can be ordered using these toppings.

Problem 9.42. Number of choices of car options.

A person can order a new car with some, all, or none of the following options: air conditioning, power windows, satellite radio, leather interior, Bluetooth connectivity, and sun roof. How many different variations of the set of options are possible?
Solution.
Let O be the set of options. Since #O=6, there are 26=64 distinct subsets of O. So, 64 different variations of the set of options are possible.
In Checkpoint 9.43 apply Theorem 9.38 to find the number of combinations of options available on bicycles..

Checkpoint 9.43. Configuring bicycles.

The Friendly Bike Store offers the options kickstand, fenders, bottle holder, hub dynamo, reflectors, hydraulic breaks, rack (back), and bell on its bikes.
Customers can choose between different combinations of options.