Math ClubMath Club
v1 · padrão canônico

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ã

N=n1n2nkN = n_1 \cdot n_2 \cdot \ldots \cdot n_k
Choose your door

Rigorous notation, full derivation, hypotheses

FCP and trees

Statement

If an experiment consists of kk successive and independent stages, with n1n_1 outcomes in the first, n2n_2 in the second, ..., nkn_k in the kk-th, then the total number of possible outcomes is: N=n1n2nkN = n_1 \cdot n_2 \cdots n_k

Additive principle (alternative)

If a task can be done by method A in mm ways OR by method B in nn ways (mutually exclusive), the total is m+nm + n.

ConnectorOperation
"AND" (sequence)multiplication
"OR" (alternative)addition

Archetypal example

4-character password: each can be A-Z (26 options). Total: 264=45697626^4 = 456\,976.

Tree of possibilities

Each stage "branches" — the tree has n1n_1 roots, each with n2n_2 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 f:ABf: A \to B with A=m,B=n|A| = m, |B| = n: nmn^m.
  • Injective functions (f:ABf: A \to B with mnm \leq n): n!/(nm)!n!/(n-m)! (arrangement).
  • Bijective functions (m=nm = n): n!n! (permutation).

Exercise list

46 exercises · 11 with worked solution (25%)

Application 34Understanding 1Modeling 8Challenge 2Proof 1
  1. Ex. 36.1Application
    3 shirts × 4 pants = ? (Ans: 1212.)
  2. Ex. 36.2Application
    5 dishes × 3 desserts × 4 drinks = ? (Ans: 6060.)
  3. Ex. 36.3Application
    How many 3-digit numeric passwords? (Repetition allowed.) (Ans: 10001\,000.)
  4. Ex. 36.4Application
    How many 3-digit passwords with no repetition? (Ans: 720720.)
  5. Ex. 36.5Application
    Mercosur license plate: 3 letters + 1 digit + 1 letter + 2 digits. Total possible? (Ans: 264103=45697600026^4 \cdot 10^3 = 456\,976\,000.)
  6. Ex. 36.6ApplicationAnswer key
    How many 4-digit numbers with first 0\neq 0? (Ans: 9103=90009 \cdot 10^3 = 9\,000.)
  7. Ex. 36.7Application
    How many ordered committees of 3 (president, secretary, treasurer) with 8 candidates? (Ans: 336336.)
  8. Ex. 36.8Application
    How many menus with 1 starter (4 opts), 1 main (5 opts), 1 dessert (3 opts)?
  9. Ex. 36.9Application
    How many old-style license plates (3 letters + 4 digits)?
  10. Ex. 36.10ApplicationAnswer key
    6-character alphanumeric password (a-z, 0-9). Total? (Ans: 36636^6.)
  11. Ex. 36.11Application
    Anagrams of "AMOR" — all 4 distinct letters. (Ans: 4!=244! = 24.)
  12. Ex. 36.12Application
    Anagrams of "PARA" (with repeated A). (Ans: 1212.)
  13. Ex. 36.13ApplicationAnswer key
    Toss 3 coins. How many possible outcomes? (Ans: 88.)
  14. Ex. 36.14Application
    Roll 2 dice. How many outcomes? (Ans: 3636.)
  15. Ex. 36.15Application
    How many even 3-digit numbers with distinct digits from {1,2,3,4,5}\{1,2,3,4,5\}?
  16. Ex. 36.16Application
    How many functions f:{1,2,3}{a,b}f: \{1,2,3\} \to \{a, b\}? (Ans: 23=82^3 = 8.)
  17. Ex. 36.17Application
    How many subsets does {1,2,3,4,5}\{1, 2, 3, 4, 5\} have? (Ans: 25=322^5 = 32.)
  18. Ex. 36.18Application
    Toss a coin 5 times — how many possible outcomes?
  19. Ex. 36.19ApplicationAnswer key
    How many numbers between 1,000 and 9,999 do not have the digit 0?
  20. Ex. 36.20Application
    How many ordered pairs from 6 friends? (Ans: A(6,2)=30A(6,2) = 30.)
  21. Ex. 36.21Application
    How many 3-digit numbers with even middle digit?
  22. Ex. 36.22Application
    4-character alphanumeric password with at least 1 digit.
  23. Ex. 36.23Application
    How many 4-digit passwords start with 1 and end with 9?
  24. Ex. 36.24Application
    How many 4-digit PINs with distinct digits? (Ans: 50405\,040.)
  25. Ex. 36.25ApplicationAnswer key
    4-digit PIN with at least 1 zero. (Total − no zero.)
  26. Ex. 36.26ApplicationAnswer key
    How many 5-digit numbers are palindromes? (Ans: 91010=9009 \cdot 10 \cdot 10 = 900.)
  27. Ex. 36.27ApplicationAnswer key
    In a race, 5 athletes. How many possible podiums (1st, 2nd, 3rd)? (Ans: 6060.)
  28. Ex. 36.28Application
    Roll 2 dice — how many outcomes have an even sum?
  29. Ex. 36.29Application
    Each of 3 vans can carry 4, 5, or 6 students. How many configurations?
  30. Ex. 36.30Application
    How many multiples of 5 between 100 and 999?
  31. Ex. 36.31ApplicationAnswer key
    Paths in the plane from (0,0)(0,0) to (3,2)(3,2) with steps (+1,0)(+1,0) or (0,+1)(0,+1). (Ans: (52)=10\binom{5}{2} = 10.)
  32. Ex. 36.32Application
    How many 4-digit numbers have exactly 2 digits equal to 7?
  33. Ex. 36.33Application
    How many 4-tuples (sequences of length 4 with {0,1,2,3}\{0,1,2,3\}) sum to 6?
  34. Ex. 36.34ApplicationAnswer key
    In a class of 30 students, the teacher picks 1 representative and 1 deputy (ordered). How many choices?
  35. Ex. 36.35ModelingAnswer key
    How many 4-PIN combinations on a debit card with distinct digits?
  36. Ex. 36.36Modeling
    In a lottery, pick 6 distinct numbers out of 60. Total (Mega-Sena): (606)\binom{60}{6} — preview Lesson 38.
  37. Ex. 36.37Modeling
    A restaurant has 8 dishes: 3 non-veg, 5 veg. A vegetarian customer picks 1 dish. How many options?
  38. Ex. 36.38Modeling
    In cryptography, an AES-128 key has 21282^{128} possibilities. Compare with 103810^{38}. (Ans: 21283.4×10382^{128} \approx 3.4 \times 10^{38}.)
  39. Ex. 36.39Modeling
    In DNA, a 10-base sequence (A, T, C, G). How many? (Ans: 4104^{10}.)
  40. Ex. 36.40ModelingAnswer key
    4-digit bank PIN. How many PINs start with 1?
  41. Ex. 36.41Modeling
    In IPv4 networks, how many unique addresses possible? (Ans: 2322^{32}.)
  42. Ex. 36.42Modeling
    In a 64-bit hash, birthday paradox: expected collision at 232\sim 2^{32} samples.
  43. Ex. 36.43Understanding
    Show that the number of injective functions f:{1,,m}{1,,n}f:\{1,\ldots,m\}\to\{1,\ldots,n\} is n!/(nm)!n!/(n-m)! via FCP.
  44. Ex. 36.44Challenge
    How many 4-digit numbers have exactly 2 digits equal to 1?
  45. Ex. 36.45Challenge
    In how many ways can 5 distinct books be arranged on a shelf so that 2 specific ones are together?
  46. Ex. 36.46Proof
    Prove the pigeonhole principle: n+1n+1 objects in nn boxes implies some box has 2\geq 2.

Sources

Updated on 2026-04-30 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.