Skip to content

Principle of Inclusion and Exclusion: all problems

Focus mode: every practice problem from the chapter, one after another.

0 / 10 solved

Problem 4.1.1

AIME

This problem also appears in the book as 4.2.

Many states use a sequence of three letters followed by a sequence of three digits as their standard license-plate pattern. Given that each three-letter three-digit arrangement is equally likely, the probability that such a license plate will contain at least one palindrome (a three-letter arrangement or a three-digit arrangement that reads the same left-to-right as it does right-to-left) is mn\dfrac{m}{n}, where mm and nn are relatively prime positive integers. Find m+nm + n.

Problem 4.1.2

AMC 10

Seven distinct pieces of candy are to be distributed among three bags. The red bag and the blue bag must each receive at least one piece of candy; the white bag may remain empty. How many arrangements are possible?

Problem 4.1.3

AMC 10

In how many ways can the sequence 1,2,3,4,51, 2, 3, 4, 5 be rearranged so that no three consecutive terms are increasing and no three consecutive terms are decreasing?

Problem 4.1.4

AMC 10

Ang, Ben, and Jasmin each have 5 blocks, colored red, blue, yellow, white, and green; and there are 5 empty boxes. Each of the people randomly and independently of the other two people places one of their blocks into each box. The probability that at least one box receives 3 blocks all of the same color is mn\dfrac{m}{n}, where mm and nn are relatively prime positive integers. What is m+nm + n?

Problem 4.1.5

AMC 10

This problem also appears in the book as 4.1.3.

In how many ways can the sequence 1,2,3,4,51, 2, 3, 4, 5 be rearranged so that no three consecutive terms are increasing and no three consecutive terms are decreasing?

Problem 4.1.6(additional)

AIME

Find the number of positive integers that are divisors of at least one of 101010^{10}, 15715^7, 181118^{11}.

Problem 4.1.7(additional)

AIME

In a five-team tournament, each team plays one game with every other team. Each team has a 50%50\% chance of winning any game it plays. (There are no ties.) Let mn\dfrac{m}{n} be the probability that the tournament will produce neither an undefeated team nor a winless team, where mm and nn are relatively prime integers. Find m+nm + n.

Problem 4.1.8(additional)

AIMEChallenge

Call a set SS product-free if there do not exist a,b,c∈Sa, b, c \in S (not necessarily distinct) such that ab=cab = c. For example, the empty set and the set {16,20}\{16, 20\} are product-free, whereas the sets {4,16}\{4, 16\} and {2,8,16}\{2, 8, 16\} are not product-free. Find the number of product-free subsets of the set {1,2,3,4,…,7,8,9,10}\{1, 2, 3, 4, \ldots, 7, 8, 9, 10\}.

Problem 4.1.9(additional)

AIMEChallenge

Define a regular nn-pointed star to be the union of nn line segments P1P2,P2P3,…,PnP1P_1P_2, P_2P_3, \ldots, P_nP_1 such that

  1. the points P1,P2,…,PnP_1, P_2, \ldots, P_n are coplanar and no three of them are collinear,
  2. each of the nn line segments intersects at least one of the other line segments at a point other than an endpoint, all of the angles at P1,P2,…,PnP_1, P_2, \ldots, P_n are congruent,
  3. all of the nn line segments P1P2,P2P3,…,PnP1P_1P_2, P_2P_3, \ldots, P_nP_1 are congruent, and the path P1P2,P2P3,…,PnP1P_1P_2, P_2P_3, \ldots, P_nP_1 turns counterclockwise at an angle of less than 180 degrees at each vertex.

There are no regular 3-pointed, 4-pointed, or 6-pointed stars. All regular 5-pointed stars are similar, but there are two non-similar regular 7-pointed stars. How many non-similar regular 1000-pointed stars are there?

Problem 4.1.10(additional)

AIMEChallenge

While watching a show, Ayako, Billy, Carlos, Dahlia, Ehuang, and Frank sat in that order in a row of six chairs. During the break, they went to the kitchen for a snack. When they came back, they sat on those six chairs in such a way that if two of them sat next to each other before the break, then they did not sit next to each other after the break. Find the number of possible seating orders they could have chosen after the break.