Quoto

Learn / Library / Combinatorics

Paths with few turns

CombinatoricsHard

A path from to uses unit moves east or north. A turn is a move whose direction differs from the move before it. How many paths have exactly turns?

Checking an answer needs JavaScript. The hint and the solution open without it.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Exactly the right number of turns fixes how many straight runs the path has.

Solution
  1. Exactly turns means the path consists of straight runs that alternate between east and north.
  2. If the path starts east, there are east runs adding up to and north runs adding up to .
  3. Splitting into positive parts can be done in ways and splitting in ways, so paths start east.
  4. The same argument gives paths that start north, so the total is .

Answer: