Skip to content

Problem 3

Fred the Frog starts at (0,0)(0,0) of the coordinate plane. He wishes to get to (4,4)(4,4), and each turn he may move one unit right, one unit left, or one unit up. Given that he may never visit the same grid space twice and for any point (x,y)(x,y) that he visits, 0≤x,y≤40\leq x,y\leq4, how many ways are there for him to reach the said location?

Solution

Answer: 625625

Fred must move up one row at a time. Within a row, he cannot reverse direction without revisiting a grid point. For each upward move, he chooses one of the five possible xx-coordinates: 0,1,2,3,40,1,2,3,4.

There are four upward moves, from y=0y=0 to 11, 11 to 22, 22 to 33, and 33 to 44. Therefore the number of paths is 54=6255^4=625.