2. How many numbers of (at most) 20 bits (in base 2) ? 3. How many (at most) 16-bit numbers with exactly 4 ones? 4. How many ways to choose 12 doughnuts from 5 varieties.
be cast as: “how many elements are in set ?” The cardinality of the set = ∈ ℕ ∧ < } is . If there is a bijection between and then has the same cardinality.
6 to 8 symbols. 2. First symbol: a letter (lowercase or uppercase). 3. Remaining symbols: must be either letters or digits. • How many different passwords are possible?
possibilities for 1st entry – For each 1st entry: 2 possibilities for 2nd entry – … – For each ( − 1)st entry: possibilities for th entry • Then = 1 ⋅ 2 … ⋅ Generalized Product Rule