Master Mathematics.

Combinatorics · Hard · Basic Counting · Problem 1

A frog without double steps

A frog is initially at and it reaches , , using the following moves in any order several times:

(i) , that is, if the frog is at it goes to ;

(ii) , that is, if the frog is at it goes to ;

(iii) , that is, if the frog is at it goes to .

In how many ways can the frog go from to , , using the above steps, subject to the condition that steps of the type and are forbidden? (For example, for , and are admissible paths, while and are not.)

Source: RMO