Skip to main content
OlympiadHQ

Browse · MathNet

Print

Saudi Arabia booklet 2024

Saudi Arabia 2024 counting and probability

Problem

A mail carrier delivers mail to the 19 houses on the east side of Elm Street. The carrier notices that no two adjacent houses ever get mail on the same day, but that there are never more than two houses in a row that get no mail on the same day. How many different patterns of mail delivery are possible?
Solution
Consider 19 consecutive squares and color them yellow (corresponding to houses that receive letters) and white (corresponding to houses that do not receive letters). Then, according to the assumption, there are no 2 consecutive yellow cells and no 3 consecutive white cells. We need to calculate the number of such coloring ways and in general, let be the number of coloring ways in case there are a total of squares.

Notice that for any two adjacent squares, there are only three cases: , , . Let be the number of coloring ways where the last 2 cells are , let be the number of coloring ways where the last 2 cells are and let be the number of ways to fill the last 2 cells with . We will establish some recurrence relationships for the sequences as follows:

With : notice that before it must be or so . With : before it must be or so . * With : before it can only be so .

Note that and we also have From these, we get so replace it back with then Thus so we immediately have the formula for is It is easy to check that , , , so substituting into above formula to get . This is also the number of ways to deliver the mail that need to find.
Final answer
351

Techniques

Recursion, bijectionRecurrence relationsColoring schemes, extremal arguments