A rectangle is divided into unit squares. A broken line, from the lower left to the upper right corner, goes through
all vertices of the unit squares and consists of line segments. How many such lines are there?
Problem 1272
Official solution
1. Let's first understand the problem. We have a rectangle, which means it has 9 columns and 1 row. This rectangle is divided into unit squares, so there are 9 unit squares in total.
2. The problem states that a broken line goes from the lower left corner to the upper right corner, passing through all 20 vertices of the unit squares. This means the line will pass through each vertex of the grid formed by the unit squares.
3. The line consists of 19 line segments, which means it changes direction 19 times. Since the line starts at the lower left corner and ends at the upper right corner, it must move right 9 times and up 10 times.
4. To find the number of such lines, we need to count the number of ways to arrange 9 right moves (denoted as 0) and 10 up moves (denoted as 1) in a sequence of 19 moves.
5. The number of ways to arrange 9 right moves and 10 up moves in a sequence of 19 moves is given by the binomial coefficient .
6. Calculating the factorials, we get:
7. Substituting these values into the binomial coefficient formula, we get:
The final answer is