Recurrences & Generating Functions

Answer & solution
Official answer: 88.9 to 89.1
Our answer: 89
1. Method and setup. Partition all sequences by their first symbol. Removing a leading 1 leaves an (n−1)-pennant; removing a leading 2 leaves an (n−2)-pennant. These classes are disjoint and exhaustive, yielding a Fibonacci-type recurrence without double counting different orders.
2. Work through the result and its assumptions. Let a 0=1 count the empty sequence and a 1=1. Partition sequences by their first entry 1 or 2: an=a(n−1)+a(n−2). The values through n=10 are 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89. Thus there are 89 ten-pennants, inside the published interval.