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 ways and a second task can be performed in ways, then there are 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 ways and another mutually exclusive choice can be made in ways, there are total possible choices.
Basic Combinatorial Counting Examples
Meal Combination Selection:
- Problem: Determine the total number of unique meal combinations that can be built given possible entrees, possible sides, and possible desserts.
- Method: Apply the Product Rule across all three course choices.
- Calculation:
Awarding Prizes Without Replacement:
- Problem: Calculate the number of ways a teacher can award prizes to distinct students chosen from a class of students, assuming no student can receive more than one prize (without replacement).
- Method:
- First prize selection: eligible students.
- Second prize selection: remaining eligible students.
- Third prize selection: remaining eligible students.
- Calculation:
Counting Digits and Integers with Restrictions

General Digit Selection Principles:
- Digits are selected position by position (thousands, hundreds, tens, units).
- Leading Zero Exclusion: A leading digit cannot be if the number is specified as a -digit positive integer (e.g., is considered a -digit integer, whereas is a -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 -digit even positive integers exist.
- Position Breakdown:
- Thousands Place: choices (digits through ; excluding ).
- Hundreds Place: choices (digits through ).
- Tens Place: choices (digits through ).
- Units Place: choices (must be even: ).
- Calculation:
4-Digit Even Positive Integers Without the Digit 7:
- Problem: Determine how many -digit even positive integers do not contain the digit .
- Position Breakdown:
- Thousands Place: choices (digits through , excluding both and ).
- Hundreds Place: choices (digits through , excluding ).
- Tens Place: choices (digits through , excluding ).
- Units Place: choices (even digits ; since is odd, no even choices are lost).
- Calculation:
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:
4-Digit Even Positive Integers Containing at Least One 7:
- Problem: Determine how many -digit even positive integers contain at least one digit .
- Method: Subtract -digit even integers that do not contain from total -digit even integers.
- Calculation:
5-Letter Sequences Containing at Least One 'b':
- Problem: Find the number of -letter sequences from the standard -letter alphabet that contain at least one letter 'b' (e.g., "babes").
- Step 1: Total 5-Letter Sequences:
- Each position has available alphabet choices.
- Step 2: Sequences Containing No 'b':
- Each position has available choices (excluding 'b').
- Step 3: Apply Indirect Counting: