Counting with Restrictions

Fundamental Counting Principles

  • Product Rule (Multiplication Principle):

    • Used when a process involves a sequence of steps or decisions ("Do this, then that").
    • If a first task can be performed in mm ways and a second task can be performed in nn ways, then there are m×nm \times n total ways to perform both tasks in sequence.
  • Sum Rule (Addition Principle):

    • Used when choosing between mutually exclusive options ("Do this, OR that").
    • If one choice can be made in mm ways and another mutually exclusive choice can be made in nn ways, there are m+nm + n total possible choices.

Basic Combinatorial Counting Examples

  • Meal Combination Selection:

    • Problem: Determine the total number of unique meal combinations that can be built given 66 possible entrees, 33 possible sides, and 77 possible desserts.
    • Method: Apply the Product Rule across all three course choices.
    • Calculation:     Total Meals=6×3×7=126\text{Total Meals} = 6 \times 3 \times 7 = 126
  • Awarding Prizes Without Replacement:

    • Problem: Calculate the number of ways a teacher can award 33 prizes to 33 distinct students chosen from a class of 3030 students, assuming no student can receive more than one prize (without replacement).
    • Method:
    • First prize selection: 3030 eligible students.
    • Second prize selection: 2929 remaining eligible students.
    • Third prize selection: 2828 remaining eligible students.
    • Calculation:     Total Ways=30×29×28=24,360\text{Total Ways} = 30 \times 29 \times 28 = 24,360

Counting Digits and Integers with Restrictions

Counting with Restrictions handwritten study notes showing combinatorics examples and calculations

  • General Digit Selection Principles:

    • Digits are selected position by position (thousands, hundreds, tens, units).
    • Leading Zero Exclusion: A leading digit cannot be 00 if the number is specified as a 44-digit positive integer (e.g., 01230123 is considered a 33-digit integer, whereas 12341234 is a 44-digit integer).
    • Even Number Criterion: Only the final digit (units place) determines whether an integer is even. Other position digits can be odd or even.
    • Impact of Restrictions: Adding more restrictions shrinks the allowable set of outcomes, yielding a smaller final answer.
  • Total 4-Digit Even Positive Integers:

    • Problem: Determine how many 44-digit even positive integers exist.
    • Position Breakdown:
    • Thousands Place: 99 choices (digits 11 through 99; excluding 00).
    • Hundreds Place: 1010 choices (digits 00 through 99).
    • Tens Place: 1010 choices (digits 00 through 99).
    • Units Place: 55 choices (must be even: 0,2,4,6,80, 2, 4, 6, 8).
    • Calculation:     Total Integers=9×10×10×5=4500\text{Total Integers} = 9 \times 10 \times 10 \times 5 = 4500
  • 4-Digit Even Positive Integers Without the Digit 7:

    • Problem: Determine how many 44-digit even positive integers do not contain the digit 77.
    • Position Breakdown:
    • Thousands Place: 88 choices (digits 11 through 99, excluding both 00 and 77).
    • Hundreds Place: 99 choices (digits 00 through 99, excluding 77).
    • Tens Place: 99 choices (digits 00 through 99, excluding 77).
    • Units Place: 55 choices (even digits 0,2,4,6,80, 2, 4, 6, 8; since 77 is odd, no even choices are lost).
    • Calculation:     Total Integers Without 7=8×9×9×5=3240\text{Total Integers Without 7} = 8 \times 9 \times 9 \times 5 = 3240

The Indirect Counting Method

  • Concept & Formula:

    • Indirect counting is utilized when counting desired outcomes directly is overly complex or tedious.
    • Compute total possible outcomes without the restriction, then subtract the set of unwanted outcomes (the complement).
    • Formula:     Desired Outcomes=Total Outcomes−Undesired Outcomes\text{Desired Outcomes} = \text{Total Outcomes} - \text{Undesired Outcomes}
  • 4-Digit Even Positive Integers Containing at Least One 7:

    • Problem: Determine how many 44-digit even positive integers contain at least one digit 77.
    • Method: Subtract 44-digit even integers that do not contain 77 from total 44-digit even integers.
    • Calculation:     Total Even Integers=4500\text{Total Even Integers} = 4500Even Integers Without 7=3240\text{Even Integers Without 7} = 3240Even Integers With At Least One 7=4500−3240=1260\text{Even Integers With At Least One 7} = 4500 - 3240 = 1260
  • 5-Letter Sequences Containing at Least One 'b':

    • Problem: Find the number of 55-letter sequences from the standard 2626-letter alphabet that contain at least one letter 'b' (e.g., "babes").
    • Step 1: Total 5-Letter Sequences:
    • Each position has 2626 available alphabet choices.     Total Sequences=26×26×26×26×26=265=11,881,376\text{Total Sequences} = 26 \times 26 \times 26 \times 26 \times 26 = 26^5 = 11,881,376
    • Step 2: Sequences Containing No 'b':
    • Each position has 2525 available choices (excluding 'b').     Sequences Without ’b’=25×25×25×25×25=255=9,765,625\text{Sequences Without 'b'} = 25 \times 25 \times 25 \times 25 \times 25 = 25^5 = 9,765,625
    • Step 3: Apply Indirect Counting:     Sequences With ’b’=265−255=11,881,376−9,765,625=2,115,751\text{Sequences With 'b'} = 26^5 - 25^5 = 11,881,376 - 9,765,625 = 2,115,751