Math Fundamentals18 sections · 814 units
Open in Course

Counting Binary Strings

Direct application

How many binary strings of length nn exist? Each position has 2 choices (0 or 1), so by the product rule: 2n2^n strings.

For n=3n = 3: 000, 001, 010, 011, 100, 101, 110, 111. That is 23=82^3 = 8 strings. Notice this matches the number of subsets of a 3-element set. Each binary string encodes which elements to include.