Maths Olympiad Prep

Library / /9 of 16

, 2024

Combinatorics Difficulty 6.3 National olympiad Prove it Saudi Arabia

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 SnS_n be the number of coloring ways in case there are a total of nn squares.

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

* With (an)(a_n): notice that before YWYW it must be YWYW or WWWW so an+2=an+cna_{n+2} = a_n + c_n.
* With (bn)(b_n): before WYWY it must be YWYW or WYWY so bn+2=an+bnb_{n+2} = a_n + b_n.
* With (cn)(c_n): before WWWW it can only be WYWY so cn+2=bnc_{n+2} = b_n.

Note that Sn=an+bn+cnS_n = a_n + b_n + c_n and we also have
cn=bn2, an+2=bn2+an. c_n = b_{n-2},\ a_{n+2} = b_{n-2} + a_n.
From these, we get bn=an+4an+2b_n = a_{n+4} - a_{n+2} so replace it back with bn+2=an+bnb_{n+2} = a_n + b_n then
an+6=2an+4an+2+an. a_{n+6} = 2a_{n+4} - a_{n+2} + a_n.
Thus Sn=an+(an+4an+2)+(an+2an)=an+4S_n = a_n + (a_{n+4} - a_{n+2}) + (a_{n+2} - a_n) = a_{n+4} so we immediately have the formula for (Sn)(S_n) is
Sn+2=2SnSn2+Sn4, n5. S_{n+2} = 2S_n - S_{n-2} + S_{n-4}, \ \forall n \ge 5.
It is easy to check that S1=2S_1 = 2, S2=3S_2 = 3, S3=4S_3 = 4, S4=5S_4 = 5 so substituting into above formula to get S19=351S_{19} = 351. This is also the number of ways to deliver the mail that need to find. 351\boxed{351}

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.