Skip to main content

2026 AIME II Problem 2

Problem 2 of 15EasierCombinatorics

The figure below shows a grid of 1010 squares in a row. Each square has a diagonal connecting its lower left vertex to its upper right vertex. A bug moves along the line segments from vertex to vertex, never traversing the same segment twice and never moving from right to left along a horizontal or diagonal segment. Let NN be the number of paths the bug can take from the lower left corner (A)(A) to the upper right corner (B).(B). One such path from AA to BB is shown by the thick line segments in the figure. Find N.\sqrt{N}.

Your answer

Integer from 0 to 999
Show solution

Solution

Put A=(0,0)A = (0, 0) and B=(10,1).B = (10, 1). Every horizontal and diagonal move goes rightward, so the bug’s xx-coordinate never decreases, and it crosses each of the 1010 vertical strips exactly once, using exactly one of that square’s three rightward segments: the bottom edge, the top edge, or the diagonal. These ten choices determine the whole path. Each crossing arrives at a definite height (bottom edge: low; top edge or diagonal: high) and departs at a definite height (bottom edge or diagonal: low; top edge: high), so at each vertical line the bug traverses the vertical segment exactly when the arrival and departure heights differ — and each vertical segment is needed at most once, so no segment repeats. The same applies at the ends: the bug starts low at AA and finishes high at B,B, using the end verticals if necessary. Conversely, every sequence of choices yields a valid path. Therefore N=310,N = 3^{10}, and N=35=243.\sqrt{N} = 3^5 = 243.
AoPS wiki

Tagged: lattice paths · multiplication principle

More practice