AMC 10 Step by Step

Topics / Counting & Probability

Paths & Grids

Lattice paths, grid walks, board colorings and configurations

12
primary-topic problems (0.9% of all)
9
more as a secondary topic
Where it appears
3
P1-10
2
P11-15
4
P16-20
3
P21-25

## What you need to know
- Lattice paths: paths from (0,0)(0,0) to (m,n)(m,n) by unit steps right and up number (m+nm)\binom{m+n}{m}: choose which of the m+nm+n steps go right.
- Paths through a required point PP: (paths to PP) ×\times (paths from PP). Paths avoiding PP: 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 {R,U,D}\{R, U, D\} do casework on the number of diagonals.
- An m×nm \times n grid of cells contains (m+12)(n+12)\binom{m+1}{2}\binom{n+1}{2} rectangles and k(mk+1)(nk+1)\sum_k (m-k+1)(n-k+1) squares.

## How AMC 10 tests it
- Problems 8–15: a direct (m+nm)\binom{m+n}{m} 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 2×n2 \times n or 3×33 \times 3 board with adjacency rules.
- Problems 18–24: paths with an extra constraint (exactly kk direction changes, never crossing the diagonal), where the trick is choosing where turns happen.
- Random-walk variants combining path counts with 2n2^{-n} or 3n3^{-n}.

## Standard approaches
1. If steps are only right and up, use (m+nm)\binom{m+n}{m} 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 kk 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 (0,0)(0,0) to (5,4)(5,4) using unit steps right or up. How many such paths pass through neither (2,2)(2,2) nor (3,3)(3,3)?

(A) 3030 (B) 3636 (C) 4242 (D) 4848 (E) 5454

Solution. Total paths: (95)=126\binom{9}{5} = 126. Through (2,2)(2,2): (42)(53)=610=60\binom{4}{2}\binom{5}{3} = 6 \cdot 10 = 60. Through (3,3)(3,3): (63)(32)=203=60\binom{6}{3}\binom{3}{2} = 20 \cdot 3 = 60. Through both: (42)(21)(32)=623=36\binom{4}{2}\binom{2}{1}\binom{3}{2} = 6 \cdot 2 \cdot 3 = 36. Paths through at least one of the points: 60+6036=8460 + 60 - 36 = 84. Paths avoiding both: 12684=42126 - 84 = 42, so the answer is (C) 42\boxed{\textbf{(C)}\ 42}.

## Pitfalls
- Writing (m+nm)\binom{m+n}{m} with the wrong top: the number of steps is m+nm + n, not mnmn or m+n1m + n - 1.
- Handling "avoids AA and BB" as total minus through-AA minus through-BB without adding back paths through both.
- Confusing lattice points with unit cells when a grid is called "4×44 \times 4."
- 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

2019 AMC 10A · #10Paths & Grids

A rectangular floor that is 1010 feet wide and 1717 feet long is tiled with 170170 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?

2012 AMC 10A · #14Paths & Grids

Chubby makes nonstandard checkerboards that have 3131 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?

2023 AMC 10B · #10Paths & Grids

You are playing a game. A 22 ×\times 11 rectangle covers two adjacent squares (oriented either horizontally or vertically) of a 33 ×\times 33 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 …

2021 AMC 10B · #8Paths & Grids

Mr. Zhou places all the integers from 11 to 225225 into a 1515 by 1515 grid. He places 11 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 …

2016 AMC 10B · #15Paths & Grids

All the numbers 1,2,3,4,5,6,7,8,91, 2, 3, 4, 5, 6, 7, 8, 9 are written in a 3×33\times3 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 1818 . What is the number in the center?

2023 AMC 10A · #20Paths & Grids

Each square in a 3×33\times3 grid of squares is colored red, white, blue, or green so that every 2×22\times2 square contains one square of each color. One such coloring is shown on the right below. How many different colorings are possible?

2022 AMC 10B · #19Paths & Grids

Each square in a 5×55 \times 5 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 …

2021 AMC 10A · #25Paths & Grids

How many ways are there to place 33 indistinguishable red chips, 33 indistinguishable blue chips, and 33 indistinguishable green chips in the squares of a 3×33 \times 3 grid so that no two chips of the same color are directly adjacent to each other, either vertically or horizontally?

2018 AMC 10A · #20Paths & Grids

A scanning code consists of a 7×77 \times 7 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 4949 squares. A scanning code is called symmetric\textit{symmetric} if its look does not change when the entire square is rotated by a …

2015 AMC 10B · #20Paths & Grids

Erin the ant starts at a given corner of a cube and crawls along exactly 77 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?

2024 AMC 10A · #25Paths & Grids

The figure below shows a dotted grid 88 cells wide and 33 cells tall consisting of 1×11''\times1'' squares. Carl places 11 -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 …

2012 AMC 10B · #25Paths & Grids

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?