When a path must avoid two points, subtracting paths through each point can remove some paths twice. An original grid example makes the overlap visible and provides a clean setting for practising a complete integer count before later AIME-style extensions.
Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send AMC10-TWO-FORBIDDEN-1117 and tell us your school year and question.
Define the grid and allowed moves
Move from (0,0) to (4,4), taking only one-unit right or up steps. There are four of each type, so the total number of monotone paths is 8 choose 4 = 70. Let the forbidden points be A = (1,2) and B = (3,2). Paths must visit neither point; crossing a horizontal or vertical line elsewhere is not forbidden.
Count paths through each point
To reach A requires one right and two up moves, giving 3 choose 1 = 3 paths. From A to the destination requires three right and two up moves, giving 5 choose 3 = 10. Thus 30 paths visit A. Similarly, reaching B gives 5 choose 3 = 10 possibilities, and leaving B gives 3 choose 1 = 3, so 30 paths visit B.
Find the paths counted in both groups
A monotone path visiting both points must encounter A before B because their horizontal coordinates increase and their vertical coordinates are equal. Between them it takes two right steps and no up steps, which is one possibility. The full count through both is therefore 3 times 1 times 3 = 9. There is no additional reverse-order group to add.
Apply the correction with the correct sign
The forbidden union has size 30 + 30 - 9 = 51. Subtracting it from all paths gives 70 - 30 - 30 + 9 = 19 allowed paths. The nine-path term is added back because those paths were removed twice in the two separate subtractions. Adding it does not permit them into the final allowed set; it restores their removal to exactly once.
Verify through a grid recurrence
As an independent check, assign value one at the origin, zero at the two forbidden points, and at every other grid point add the values immediately below and left when available. The destination receives 19. The recurrence counts actual allowed continuations, whereas inclusion and exclusion counts complements. Agreement is a useful check, but both methods still depend on preserving the same move restrictions and forbidden-point definitions.
Continue reading: AMC 10 to AIME Geometry: Count Interior Grid Points Without Including the Boundary.
Contact Hanlin
Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send AMC10-TWO-FORBIDDEN-1117. Include your school year, country or competition region, experience and the question you want to discuss.

On your phone, use the button or save the QR image and scan it within WeChat.
Official information and further reading: Source 1
