AMC 10 Step by Step

Paths & Grids

Lattice paths, grid walks, board colorings and configurations

Print these 12
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

  • Grid paths. A path from (0,0)(0,0) to (m,n)(m,n) by unit steps right (R) or up (U) has m+nm+n steps: mm R's and nn U's. Choosing which steps are R's decides the path: (m+nm)\binom{m+n}{m} paths. Example: from (0,0)(0,0) to (3,2)(3,2) there are (53)=10\binom53 = 10 paths.
  • Through a point, or avoiding it. Paths through a point PP: (paths to PP) ×\times (paths from PP to the end). Paths avoiding PP: all paths minus those through PP. Example: to (3,2)(3,2) through (1,1)(1,1): (21)⋅(31)=6\binom21\cdot\binom31 = 6 paths, so 10−6=410-6 = 4 avoid (1,1)(1,1).
  • Labeling the corners. When some streets are blocked or one-way, write at each corner the number of ways to reach it: the sum of the numbers at the corners you can arrive from.
  • Diagonal steps change the count. If a diagonal step D (right and up at once) is also allowed, do casework on the number of D's. Example: to (2,2)(2,2) with steps R, U, D: no D's gives (42)=6\binom42 = 6 paths, one D gives 3!=63! = 6 (orders of R, U, D), two D's give 11, so 1313 in all.
  • Rectangles and squares. A grid of mm by nn unit squares has (m+12)(n+12)\binom{m+1}{2}\binom{n+1}{2} rectangles (choose 22 of the m+1m+1 vertical lines and 22 of the n+1n+1 horizontal ones). It has mn+(m−1)(n−1)+(m−2)(n−2)+⋯mn+(m-1)(n-1)+(m-2)(n-2)+\cdots squares (1×11\times1, then 2×22\times2, and so on), stopping when a factor reaches 00. Example: a 3×33\times3 grid has (42)(42)=36\binom42\binom42 = 36 rectangles and 9+4+1=149+4+1 = 14 squares.

How AMC 10 tests it

  • Problems 8–15: a direct (m+nm)\binom{m+n}{m} count, often with a point the path must pass through or avoid.
  • Problems 12–20: paths on an irregular grid (missing streets, one-way streets), meant for labeling the corners.
  • Counting squares or rectangles in a figure, or colorings of a 2×n2\times n or 3×33\times3 board with rules about neighboring cells.
  • Problems 18–24: paths with an extra rule (exactly kk changes of direction, never crossing the diagonal), where the trick is choosing where the turns happen.
  • Random walks: multiply a path count by 12n\frac{1}{2^n} or 13n\frac{1}{3^n}, the chance of one particular nn-step path when each step has 22 or 33 equally likely choices.

Standard approaches

  1. With only right and up steps, use (m+nm)\binom{m+n}{m}. Multiply for a point the path must pass through; subtract for a point it must avoid.
  2. Otherwise label the corners in order (the Pascal's Triangle method); it always works on small grids.
  3. For "exactly kk turns," count how the R's and U's split into runs. Example: (0,0)(0,0) to (3,3)(3,3) with exactly 33 turns has 44 runs (like RR U R UU): 22 ways to split the R's into 22 runs, 22 for the U's, and 22 choices of first step, so 88 paths.
  4. For colorings and tilings, fix the first row or the most limited cell, then count the ways to finish.
  5. With nothing blocked, the corner labels should match (m+nm)\binom{m+n}{m}; use this as a check.

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. Use complementary counting and PIE.

Step 1: all paths. There are 55 R's and 44 U's: (95)=126\binom95 = 126 paths.

Step 2: through (2,2)(2,2). (42)=6\binom42 = 6 ways to get there, then 33 R's and 22 U's to finish: (53)=10\binom53 = 10. So 6⋅10=606\cdot10 = 60.

Step 3: through (3,3)(3,3). (63)=20\binom63 = 20 ways to get there, then 22 R's and 11 U: (32)=3\binom32 = 3. So 20⋅3=6020\cdot3 = 60.

Step 4: through both. 66 ways to (2,2)(2,2), then (21)=2\binom21 = 2 to (3,3)(3,3), then 33 to the end: 6⋅2⋅3=366\cdot2\cdot3 = 36.

Step 5: combine. Through at least one point: 60+60−36=8460+60-36 = 84. Through neither: 126−84=42126-84 = 42.

The answer is (C) 42\boxed{\textbf{(C)}\ 42}.

Pitfalls

  • Using the wrong top number in (m+nm)\binom{m+n}{m}. The number of steps is m+nm+n, not mnmn or m+n−1m+n-1.
  • Treating "avoids AA and BB" as all paths minus those through AA minus those through BB, without adding back those through both. Above, that gives 126−60−60=6126-60-60 = 6 instead of 4242.
  • Mixing up points and squares when a grid is called "4×44\times4." A 4×44\times4 grid of squares has 5×55\times5 points; corner to corner is (84)=70\binom84 = 70 paths, not (63)=20\binom63 = 20.
  • In corner labeling, adding a neighbor's number across a street 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

Open any of them to try it here; the worked solution is on the problem's own page.