Lesson 36 — Fundamental Counting Principle
FCP: if event A can occur in m ways and B in n ways, the joint event AB occurs in mn ways. Tree of possibilities.
Used in: 1.º ano do EM (15 anos) · Equiv. Math A japonês · Equiv. Klasse 10 alemã
Rigorous notation, full derivation, hypotheses
FCP and trees
Statement
If an experiment consists of successive and independent stages, with outcomes in the first, in the second, ..., in the -th, then the total number of possible outcomes is:
Additive principle (alternative)
If a task can be done by method A in ways OR by method B in ways (mutually exclusive), the total is .
| Connector | Operation |
|---|---|
| "AND" (sequence) | multiplication |
| "OR" (alternative) | addition |
Archetypal example
4-character password: each can be A-Z (26 options). Total: .
Tree of possibilities
Each stage "branches" — the tree has roots, each with children, and so on. Leaves = total of outcomes.
Constraints — "no repetition"
If shoes can't repeat, the first has 5 options, the second 4, the third 3 — combinations without repetition. Generalizes to permutation/arrangement (Lesson 37).
Functions between sets
- Total functions with : .
- Injective functions ( with ): (arrangement).
- Bijective functions (): (permutation).
Exercise list
46 exercises · 11 with worked solution (25%)
- Ex. 36.1Application3 shirts × 4 pants = ? (Ans: .)
- Ex. 36.2Application5 dishes × 3 desserts × 4 drinks = ? (Ans: .)
- Ex. 36.3ApplicationHow many 3-digit numeric passwords? (Repetition allowed.) (Ans: .)
- Ex. 36.4ApplicationHow many 3-digit passwords with no repetition? (Ans: .)
- Ex. 36.5ApplicationMercosur license plate: 3 letters + 1 digit + 1 letter + 2 digits. Total possible? (Ans: .)
- Ex. 36.6ApplicationAnswer keyHow many 4-digit numbers with first ? (Ans: .)
- Ex. 36.7ApplicationHow many ordered committees of 3 (president, secretary, treasurer) with 8 candidates? (Ans: .)
- Ex. 36.8ApplicationHow many menus with 1 starter (4 opts), 1 main (5 opts), 1 dessert (3 opts)?
- Ex. 36.9ApplicationHow many old-style license plates (3 letters + 4 digits)?
- Ex. 36.10ApplicationAnswer key6-character alphanumeric password (a-z, 0-9). Total? (Ans: .)
- Ex. 36.11ApplicationAnagrams of "AMOR" — all 4 distinct letters. (Ans: .)
- Ex. 36.12ApplicationAnagrams of "PARA" (with repeated A). (Ans: .)
- Ex. 36.13ApplicationAnswer keyToss 3 coins. How many possible outcomes? (Ans: .)
- Ex. 36.14ApplicationRoll 2 dice. How many outcomes? (Ans: .)
- Ex. 36.15ApplicationHow many even 3-digit numbers with distinct digits from ?
- Ex. 36.16ApplicationHow many functions ? (Ans: .)
- Ex. 36.17ApplicationHow many subsets does have? (Ans: .)
- Ex. 36.18ApplicationToss a coin 5 times — how many possible outcomes?
- Ex. 36.19ApplicationAnswer keyHow many numbers between 1,000 and 9,999 do not have the digit 0?
- Ex. 36.20ApplicationHow many ordered pairs from 6 friends? (Ans: .)
- Ex. 36.21ApplicationHow many 3-digit numbers with even middle digit?
- Ex. 36.22Application4-character alphanumeric password with at least 1 digit.
- Ex. 36.23ApplicationHow many 4-digit passwords start with 1 and end with 9?
- Ex. 36.24ApplicationHow many 4-digit PINs with distinct digits? (Ans: .)
- Ex. 36.25ApplicationAnswer key4-digit PIN with at least 1 zero. (Total − no zero.)
- Ex. 36.26ApplicationAnswer keyHow many 5-digit numbers are palindromes? (Ans: .)
- Ex. 36.27ApplicationAnswer keyIn a race, 5 athletes. How many possible podiums (1st, 2nd, 3rd)? (Ans: .)
- Ex. 36.28ApplicationRoll 2 dice — how many outcomes have an even sum?
- Ex. 36.29ApplicationEach of 3 vans can carry 4, 5, or 6 students. How many configurations?
- Ex. 36.30ApplicationHow many multiples of 5 between 100 and 999?
- Ex. 36.31ApplicationAnswer keyPaths in the plane from to with steps or . (Ans: .)
- Ex. 36.32ApplicationHow many 4-digit numbers have exactly 2 digits equal to 7?
- Ex. 36.33ApplicationHow many 4-tuples (sequences of length 4 with ) sum to 6?
- Ex. 36.34ApplicationAnswer keyIn a class of 30 students, the teacher picks 1 representative and 1 deputy (ordered). How many choices?
- Ex. 36.35ModelingAnswer keyHow many 4-PIN combinations on a debit card with distinct digits?
- Ex. 36.36ModelingIn a lottery, pick 6 distinct numbers out of 60. Total (Mega-Sena): — preview Lesson 38.
- Ex. 36.37ModelingA restaurant has 8 dishes: 3 non-veg, 5 veg. A vegetarian customer picks 1 dish. How many options?
- Ex. 36.38ModelingIn cryptography, an AES-128 key has possibilities. Compare with . (Ans: .)
- Ex. 36.39ModelingIn DNA, a 10-base sequence (A, T, C, G). How many? (Ans: .)
- Ex. 36.40ModelingAnswer key4-digit bank PIN. How many PINs start with 1?
- Ex. 36.41ModelingIn IPv4 networks, how many unique addresses possible? (Ans: .)
- Ex. 36.42ModelingIn a 64-bit hash, birthday paradox: expected collision at samples.
- Ex. 36.43UnderstandingShow that the number of injective functions is via FCP.
- Ex. 36.44ChallengeHow many 4-digit numbers have exactly 2 digits equal to 1?
- Ex. 36.45ChallengeIn how many ways can 5 distinct books be arranged on a shelf so that 2 specific ones are together?
- Ex. 36.46ProofProve the pigeonhole principle: objects in boxes implies some box has .
Sources
- Algebra and Trigonometry — Jay Abramson et al. (OpenStax) · 2022, 2nd ed · EN · CC-BY · §11.5: combinatorics. Primary source.
- Book of Proof — Richard Hammack · 2018, 3rd ed · EN · free · ch. 3: counting.
- Matemática elementar — Wikibooks · alive · PT-BR · CC-BY-SA.