AMC 10B/12B 2026 (Problem 22/17)

Belinda follows a path on the plane that is entirely contained within the square region 0≤x,y≤40\le x,y\le 4. Call her path dignified if and only if all of the following conditions are satisfied.

• Each step is one unit up, down, or to the right.

• The path does not revisit any vertex.

• The path starts at (a,0)(a,0) and ends at (b,0)(b,0), where aa and bb are integers with a<ba<b, and touches the xx-axis only at these two points.

The following figure shows some examples of dignified and not dignified paths.

Examples of dignified and not dignified paths


How many dignified paths can Belinda follow?
(A)  174\text{(A)}\;174(B)  340\text{(B)}\;340(C)  448\text{(C)}\;448(D)  512\text{(D)}\;512(E)  970\text{(E)}\;970