Skip to content
∑ Numerive

Learn

HomeTry a questionMy questsLearning SearchHomeworkUnderstand & rememberCurriculumFlashcardsUniversity

Exam preparation

Mock examsSATPSAT/NMSQTAMC 8 / 10 / 12

Your learning world

My characterAchievementsFriendsStudy groups

Family & help

Family workspace30-day reasoning planStudent sign inFor familiesContact & help
∑ NumeriveMATH
LearningExamsFamily
Make learning comfortable
Changing style, motion, or reading speed keeps your current question, answers, homework, and saved progress. The school band still chooses your task layout. Saved to your learner profile across devices. All lessons and help stay available.
← Intermediate Counting and Probability levels

Intermediate Counting and Probability / LEVEL 2 · DIFFICULTY 2/5

Exclusion, Expectation and Recurrences

Count indirectly and build recursive models.

3 stages · 24 practice problems · two 6-question assessment forms

Choose a node to explore its lesson.

  1. 1MINI QUEST IC 2.1DerangementsRead the lesson
  2. 2MINI QUEST IC 2.2Indicator VariablesRead the lesson
  3. 3MINI QUEST IC 2.3Recurrences from First ChoicesRead the lesson
  4. LEVEL CHECKCastle challenge

    6 questions across this level.

    Sign in for the level check →

STAGE IC 2.1 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS

Derangements

Useful preparation: Upper Bounds by Subtraction

The idea to remember

A derangement fixes no object. Inclusion-exclusion removes arrangements fixing one or more positions.

Remember with 2 flashcards →

Goal: Understand and apply derangements.

Before you begin: Upper Bounds by Subtraction

Understand the idea

A derangement is a permutation with no object in its original position. Events saying a particular position is fixed overlap, making inclusion–exclusion suitable.

Dn=∑\displaystyle D_{n} = \sumDn​=∑ from k=0\displaystyle k = 0k=0 to n (−1)k C (n,k) (n−k)!\displaystyle n\, \left(-1\right)^{k}\, C\, \left(n, k\right)\, \left(n - k\right)!n(−1)kC(n,k)(n−k)!

Choose and carry out a method

Start with all n!\displaystyle n!n! permutations. Alternately subtract and restore choices with specified fixed positions: C (n,k) (n−k)!\displaystyle C\, \left(n, k\right)\, \left(n - k\right)!C(n,k)(n−k)! at step k.

Check the reasoning

For n=1\displaystyle n = 1n=1 there are none, and for n=2\displaystyle n = 2n=2 there is one. These small cases check the sign and the empty-permutation convention 0!=1\displaystyle 0! = 10!=1.

WORKED EXAMPLE 1

There are 4 labeled positions. The first 0 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?

  1. Use inclusion-exclusion on the events that a particular object stays fixed.
  2. D (4)=4!\displaystyle D\, \left(4\right) = 4!D(4)=4!·(1−11!+12!\displaystyle 1 - \frac{1}{1!} + \frac{1}{2!}1−1!1​+2!1​-…+(−1)44!\displaystyle \frac{+\left(-1\right)^{4}}{4!}4!+(−1)4​).
  3. The derangement count is 9. Fixing k specified positions leaves (4−k)!\displaystyle \left(4 - k\right)!(4−k)! arrangements.

9

WORKED EXAMPLE 2

There are 5 labeled positions. The first 0 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?

  1. Use inclusion-exclusion on the events that a particular object stays fixed.
  2. D (5)=5!\displaystyle D\, \left(5\right) = 5!D(5)=5!·(1−11!+12!\displaystyle 1 - \frac{1}{1!} + \frac{1}{2!}1−1!1​+2!1​-…+(−1)55!\displaystyle \frac{+\left(-1\right)^{5}}{5!}5!+(−1)5​).
  3. The derangement count is 44. Fixing k specified positions leaves (5−k)!\displaystyle \left(5 - k\right)!(5−k)! arrangements.

44

Common pitfalls

Possible mix-up: Subtract each fixed-position event only once.

Permutations fixing several positions lie in overlapping events and need correction.

Possible mix-up: A correct numerical answer alone explains the method.

State the governing relationship and check the conditions described above.

Explain it to yourself

Explain why choosing k fixed positions leaves (n−k)!\displaystyle \left(n - k\right)!(n−k)! permutations.

Discuss together

Invite your learner to explain: Explain why choosing k fixed positions leaves (n−k)!\displaystyle \left(n - k\right)!(n−k)! permutations. Use the worked examples to discuss their reasoning.

Preview the eight practice prompts
  1. Problem 1

    There are 7 labeled positions. The first 0 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?

    Practise this exact problem →
  2. Problem 2

    There are 4 labeled positions. The first 1 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?

    Practise this exact problem →
  3. Problem 3

    There are 5 labeled positions. The first 1 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?

    Practise this exact problem →
  4. Problem 4

    There are 6 labeled positions. The first 1 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?

    Practise this exact problem →
  5. Problem 5

    There are 7 labeled positions. The first 1 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?

    Practise this exact problem →
  6. Problem 6

    There are 8 labeled positions. The first 1 objects must stay in their original positions; every other object must move. How many permutations satisfy these conditions?

    Practise this exact problem →
  7. Problem 7New context

    5 name cards go into matching labeled envelopes. The first 2 cards must be placed correctly and all remaining cards incorrectly. How many assignments are possible?

    Practise this exact problem →
  8. Problem 8New context

    6 name cards go into matching labeled envelopes. The first 2 cards must be placed correctly and all remaining cards incorrectly. How many assignments are possible?

    Practise this exact problem →
Open stage IC 2.1 in the student workspace →

STAGE IC 2.2 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS

Indicator Variables

Useful preparation: Derangements

The idea to remember

Write a count as a sum of 0-or-1 indicators. Its expectation is the sum of their probabilities, without needing independence.

Remember with 2 flashcards →

Goal: Understand and apply indicator variables.

Before you begin: Derangements

Understand the idea

An indicator is one when a particular event occurs and zero otherwise, so its expectation equals the event’s probability. Summing indicators counts successes.

E(I1\displaystyle I_{1}I1​+…+In\displaystyle +I_{n}+In​)=P (A1)\displaystyle P\, \left(A_{1}\right)P(A1​)+…+P (An)\displaystyle +P\, \left(A_{n}\right)+P(An​)

Choose and carry out a method

Define one indicator for each trial and add their probabilities. Linearity of expectation does not require the indicators to be independent.

Check the reasoning

Dependence affects distributions and joint probabilities, but not the rule that expectations add. Confirm what one indicator actually measures.

WORKED EXAMPLE 1

A fair die is rolled 9 times. What is the expected number of sixes?

  1. Write the count as a sum of zero-one indicators and add their expectations.
  2. Each indicator has expectation 16\displaystyle \frac{1}{6}61​, so E(total)=96\displaystyle \frac{9}{6}69​.
  3. The expectation is 32\displaystyle \frac{3}{2}23​. It may be nonintegral even though every actual count is an integer.

32\displaystyle \frac{3}{2}23​

WORKED EXAMPLE 2

A fair die is rolled 10 times. What is the expected number of sixes?

  1. Write the count as a sum of zero-one indicators and add their expectations.
  2. Each indicator has expectation 16\displaystyle \frac{1}{6}61​, so E(total)=106\displaystyle \frac{10}{6}610​.
  3. The expectation is 53\displaystyle \frac{5}{3}35​. It may be nonintegral even though every actual count is an integer.

53\displaystyle \frac{5}{3}35​

Common pitfalls

Possible mix-up: Expectations add only for independent events.

Linearity holds even with dependence.

Possible mix-up: A correct numerical answer alone explains the method.

State the governing relationship and check the conditions described above.

Explain it to yourself

Why can expectation be easier to find than the entire distribution of a count?

Discuss together

Invite your learner to explain: Why can expectation be easier to find than the entire distribution of a count? Use the worked examples to discuss their reasoning.

Preview the eight practice prompts
  1. Problem 1

    A fair die is rolled 12 times. What is the expected number of sixes?

    Practise this exact problem →
  2. Problem 2

    A fair die is rolled 13 times. What is the expected number of sixes?

    Practise this exact problem →
  3. Problem 3

    A fair die is rolled 14 times. What is the expected number of sixes?

    Practise this exact problem →
  4. Problem 4

    A fair die is rolled 15 times. What is the expected number of sixes?

    Practise this exact problem →
  5. Problem 5

    A fair die is rolled 16 times. What is the expected number of sixes?

    Practise this exact problem →
  6. Problem 6

    A fair die is rolled 17 times. What is the expected number of sixes?

    Practise this exact problem →
  7. Problem 7New context

    18 sensors each independently trigger with probability 16\displaystyle \frac{1}{6}61​. What is the expected number that trigger on a check?

    Practise this exact problem →
  8. Problem 8New context

    19 sensors each independently trigger with probability 16\displaystyle \frac{1}{6}61​. What is the expected number that trigger on a check?

    Practise this exact problem →
Open stage IC 2.2 in the student workspace →

STAGE IC 2.3 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS

Recurrences from First Choices

Useful preparation: Indicator Variables

The idea to remember

Classify by the first choice to build a recurrence, and specify initial values so the sequence is determined.

Remember with 2 flashcards →

Goal: Understand and apply recurrences from first choices.

Before you begin: Indicator Variables

Understand the idea

A tiling by lengths one and two begins with exactly one of those tile lengths. Removing the first tile leaves a shorter problem of the same kind.

T0=T1=1\displaystyle T_{0} = T_{1} = 1T0​=T1​=1; Tn=Tn−1+Tn−2\displaystyle T_{n} = T_{n-1} + T_{n-2}Tn​=Tn−1​+Tn−2​

Choose and carry out a method

Let T(n) count tilings of length n. Use T (n)=T (n−1)+T (n−2)\displaystyle T\, \left(n\right) = T\, \left(n - 1\right) + T\, \left(n - 2\right)T(n)=T(n−1)+T(n−2), with T (0)=1\displaystyle T\, \left(0\right) = 1T(0)=1 and T (1)=1\displaystyle T\, \left(1\right) = 1T(1)=1, and build a table forward.

Check the reasoning

The empty remainder counts as one successful completion. The two first-tile cases are disjoint and exhaustive.

WORKED EXAMPLE 1

How many ways can a row of 5 unit cells be tiled with unit tiles and 1×2\displaystyle 1 \times 21×2 dominoes?

  1. Classify by the first move or tile: length one or length two.
  2. Let T (0)=1\displaystyle T\, \left(0\right) = 1T(0)=1 and T (1)=1\displaystyle T\, \left(1\right) = 1T(1)=1; then T (n)=T (n−1)+T (n−2)\displaystyle T\, \left(n\right) = T\, \left(n - 1\right) + T\, \left(n - 2\right)T(n)=T(n−1)+T(n−2).
  3. The recurrence gives T (5)=8\displaystyle T\, \left(5\right) = 8T(5)=8. The empty completion counts once.

8

WORKED EXAMPLE 2

How many ways can a row of 6 unit cells be tiled with unit tiles and 1×2\displaystyle 1 \times 21×2 dominoes?

  1. Classify by the first move or tile: length one or length two.
  2. Let T (0)=1\displaystyle T\, \left(0\right) = 1T(0)=1 and T (1)=1\displaystyle T\, \left(1\right) = 1T(1)=1; then T (n)=T (n−1)+T (n−2)\displaystyle T\, \left(n\right) = T\, \left(n - 1\right) + T\, \left(n - 2\right)T(n)=T(n−1)+T(n−2).
  3. The recurrence gives T (6)=13\displaystyle T\, \left(6\right) = 13T(6)=13. The empty completion counts once.

13

Common pitfalls

Possible mix-up: An empty board has zero tilings.

There is one way to finish with no tiles left to place.

Possible mix-up: A correct numerical answer alone explains the method.

State the governing relationship and check the conditions described above.

Explain it to yourself

How would allowing a tile of length three change the recurrence?

Discuss together

Invite your learner to explain: How would allowing a tile of length three change the recurrence? Use the worked examples to discuss their reasoning.

Preview the eight practice prompts
  1. Problem 1

    How many ways can a row of 8 unit cells be tiled with unit tiles and 1×2\displaystyle 1 \times 21×2 dominoes?

    Practise this exact problem →
  2. Problem 2

    How many ways can a row of 9 unit cells be tiled with unit tiles and 1×2\displaystyle 1 \times 21×2 dominoes?

    Practise this exact problem →
  3. Problem 3

    How many ways can a row of 10 unit cells be tiled with unit tiles and 1×2\displaystyle 1 \times 21×2 dominoes?

    Practise this exact problem →
  4. Problem 4

    How many ways can a row of 11 unit cells be tiled with unit tiles and 1×2\displaystyle 1 \times 21×2 dominoes?

    Practise this exact problem →
  5. Problem 5

    How many ways can a row of 12 unit cells be tiled with unit tiles and 1×2\displaystyle 1 \times 21×2 dominoes?

    Practise this exact problem →
  6. Problem 6

    How many ways can a row of 13 unit cells be tiled with unit tiles and 1×2\displaystyle 1 \times 21×2 dominoes?

    Practise this exact problem →
  7. Problem 7New context

    A robot climbs 14 steps using moves of one or two steps. How many different move sequences reach the top exactly?

    Practise this exact problem →
  8. Problem 8New context

    A robot climbs 15 steps using moves of one or two steps. How many different move sequences reach the top exactly?

    Practise this exact problem →
Open stage IC 2.3 in the student workspace →
Browse another level →
∑ Numerive

Learn

HomeTry a questionMy questsLearning SearchHomeworkUnderstand & rememberCurriculumFlashcardsUniversity

Exam preparation

Mock examsSATPSAT/NMSQTAMC 8 / 10 / 12

Your learning world

My characterAchievementsFriendsStudy groups

Family & help

Family workspace30-day reasoning planStudent sign inFor familiesContact & help
Exclusion, Expectation and Recurrences: lessons and practice | Numerive Math