Topics / Counting & Probability
Paths & Grids
Lattice paths, grid walks, board colorings and configurations
## What you need to know
- Lattice paths: paths from to by unit steps right and up number : choose which of the steps go right.
- Paths through a required point : (paths to ) (paths from ). Paths avoiding : total minus through.
- Vertex labeling: on a grid with blocked cells or one-way edges, write at each vertex the number of ways to reach it, summing over predecessors.
- Diagonal steps change the count; with steps do casework on the number of diagonals.
- An grid of cells contains rectangles and squares.
## How AMC 10 tests it
- Problems 8–15: a direct count, often with a forced or forbidden intersection.
- Problems 12–20: paths on an irregular grid (missing edges, one-way streets), intended for vertex labeling.
- Counting squares or rectangles in a figure, or colorings of a or board with adjacency rules.
- Problems 18–24: paths with an extra constraint (exactly direction changes, never crossing the diagonal), where the trick is choosing where turns happen.
- Random-walk variants combining path counts with or .
## Standard approaches
1. If steps are only right and up, use with through-point multiplication and complement for forbidden points.
2. Otherwise label vertices with counts in order (the Pascal-triangle method); it always works on small grids.
3. For "exactly turns," count how the R's and U's split into blocks.
4. For colorings and tilings, fix the first row or the most constrained cell and count extensions.
5. Cross-check a row of vertex labels against a known binomial when nothing is blocked.
## Worked example
A path goes from to using unit steps right or up. How many such paths pass through neither nor ?
(A) (B) (C) (D) (E)
Solution. Total paths: . Through : . Through : . Through both: . Paths through at least one of the points: . Paths avoiding both: , so the answer is .
## Pitfalls
- Writing with the wrong top: the number of steps is , not or .
- Handling "avoids and " as total minus through- minus through- without adding back paths through both.
- Confusing lattice points with unit cells when a grid is called "."
- In vertex labeling, adding a neighbor's count across an edge that is actually blocked.
Traps that recur
- Forgetting the two loops that never enter the middle row (the full top-row and full bottom-row rectangles), which gives 144, choice (B). (2024 AMC 10A #25)
- Ignoring the three leftward arrows and counting only monotone paths (1024), or forgetting that the bug may switch between the upper and lower halves at a center vertex. (2012 AMC 10B #25)
- Treating the edge-middle squares as independent choices, or forgetting the two cases (two opposite pairs equal vs. one pair equal) in the cycle count. (2023 AMC 10A #20)
- Forgetting that empty cells with exactly three filled neighbors turn on, including the border midpoints when a full side of the 3×3 is filled. (2022 AMC 10B #19)
Problems, easiest first
A rectangular floor that is feet wide and feet long is tiled with one-foot square tiles. A bug walks from one corner to the opposite corner in a straight line. Including the first and the last tile, how many tiles does the bug visit?
Chubby makes nonstandard checkerboards that have squares on each side. The checkerboards have a black square in every corner and alternate red and black squares along every row and column. How many black squares are there on such a checkerboard?
You are playing a game. A rectangle covers two adjacent squares (oriented either horizontally or vertically) of a grid of squares, but you are not told which two squares are covered. Your goal is to find at least one square that is covered by the rectangle. A "turn" consists of you …
Mr. Zhou places all the integers from to into a by grid. He places in the middle square (eighth row and eighth column) and places other numbers one by one clockwise, as shown in part in the diagram below. What is the sum of the greatest number and the least number that appear in the second row …
All the numbers are written in a array of squares, one number in each square, in such a way that if two numbers are consecutive then they occupy squares that share an edge. The numbers in the four corners add up to . What is the number in the center?
Each square in a grid of squares is colored red, white, blue, or green so that every square contains one square of each color. One such coloring is shown on the right below. How many different colorings are possible?
Each square in a grid is either filled or empty, and has up to eight adjacent neighboring squares, where neighboring squares share either a side or a corner. The grid is transformed by the following rules: - Any filled square with two or three filled neighbors remains filled. - Any empty square with …
How many ways are there to place indistinguishable red chips, indistinguishable blue chips, and indistinguishable green chips in the squares of a grid so that no two chips of the same color are directly adjacent to each other, either vertically or horizontally?
A scanning code consists of a grid of squares, with some of its squares colored black and the rest colored white. There must be at least one square of each color in this grid of squares. A scanning code is called if its look does not change when the entire square is rotated by a …
Erin the ant starts at a given corner of a cube and crawls along exactly edges in such a way that she visits every corner exactly once and then finds that she is unable to return along an edge to her starting point. How many paths are there meeting these conditions?
The figure below shows a dotted grid cells wide and cells tall consisting of squares. Carl places -inch toothpicks along some of the sides of the squares to create a closed loop that does not intersect itself. The numbers in the cells indicate the number of sides of that square that are to be …
A bug travels from A to B along the segments in the hexagonal lattice pictured below. The segments marked with an arrow can be traveled only in the direction of the arrow, and the bug never travels the same segment more than once. How many different paths are there?