Discrete math · Counting: sum and product rules

Counting subsets and bit strings

The number of subsets of a set, and of pairs from two sets, follows from simple counting rules.