Let S={(a,b)∣a=1,2,…,n,b=1,2,3}. A rook tour of S is a polygonal path made up of line segments connecting points p1,p2,…,p3n is sequence such that
(i) pi∈S,
(ii) pi and pi+1 are a unit distance apart, for 1≤i<3n,
(iii) for each p∈S there is a unique i such that pi=p.
How many rook tours are there that begin at (1,1) and end at (n,1)?
(The official statement includes a picture depicting an example of a rook tour for n=5. This example consists of line segments with vertices at which there is a change of direction at the following points, in order: (1,1),(2,1),(2,2),(1,2),(1,3),(3,3),(3,1),(4,1),(4,3),(5,3),(5,1).) Putnaminductioncollege contests