DR.WANG Mathematics中文
AIME · Challenge · Original practice

A single intermediate return

A walk on the number line starts at 0 and consists of eight steps, each either +1 or -1. It never goes below 0 and finishes at 0. At exactly one of times 1 through 7 it is at 0. How many walks satisfy these conditions?

Hint

Cut at the unique interior return. Each piece stays strictly positive until its last step.

Show answer and methods 2 methods

Answer

5

Method 1 Split into excursions

A positive excursion of length 2 can only be UD; one of length 4 can only be UUDD. In length 6, remove the initial U and the final D and lower the remaining path by one. The middle four steps then give either UUDD or UDUD, so there are two excursions of length 6. The two excursion lengths can be (2,6), (4,4), or (6,2). They give 1(2) + 1(1) + 2(1) = 5 walks.

Method 2 Bijection to a six-step Dyck path

Write the two positive excursions as U P D and U Q D, where P and Q, measured relative to their starting heights, are nonnegative closed walks. Map the pair to U P D Q. It is a six-step nonnegative closed walk, and cutting it at its first return recovers P and Q. Of the 20 unrestricted six-step closed walks, the bad ones go below zero. Reflecting the steps through the first visit to -1 gives a bijection with six-step walks ending at 2 (reverse at the first visit to 1). There are 15 such walks, since they have two down-steps. Thus the answer is 20-15=5.