SASMO Counting Practice: Subtract Paths Through a Point Without Losing Their Two Stages

A shortest grid route can be described by a sequence of right and up moves. When one junction is forbidden, it is often simpler to count all shortest routes and subtract those that visit it. This is an original extension exercise for SASMO readers who already understand combinations. It is not an official problem or a claim about the difficulty assigned to a particular year level.

Need help choosing a next step? Scan the contact QR code below or contact Hanlin on WeChat. Send SASMO-GRID-PATHS-1111 and tell us your school year and question.

Count the unrestricted routes

Start at (0,0) and finish at (4,3), moving only one unit right or one unit up. Every shortest route has four right moves and three up moves, seven moves altogether. Choose the three positions occupied by up moves, giving 7 choose 3=35 routes. The counting concerns move sequences, not the number of individual grid cells.

Split a route at the forbidden junction

Suppose the junction (2,1) must not be visited. A route reaching it first needs two right moves and one up move, arranged in 3 choose 1=3 ways. From that junction to (4,3), it needs two right and two up moves, arranged in 4 choose 2=6 ways. These are separate portions of a full route.

Multiply, then subtract

Each valid first portion can be joined to each second portion, giving 3 times 6=18 routes through the junction. A monotone route cannot revisit that point, so every counted full route has one unique split. The number avoiding it is therefore 35-18=17. Adding three and six would count portions, not complete journeys.

Know when the method changes

If two junctions are forbidden, subtracting the two individual counts may remove routes passing through both twice. Their shared routes then need to be added back. If movement left or down is also allowed without a shortest-route restriction, paths can revisit points and the finite seven-move model is no longer the same problem.

Check with a smaller board

Draw a two-by-two grid with two right and two up moves. There are six shortest routes. Four pass through (1,1), because there are two ways to arrive and two ways to leave, so two avoid it. Listing all six move strings provides a useful independent check of multiplication and subtraction before using the larger example. When explaining a solution, state why the split is unique; that is what prevents hidden double counting.

Continue reading: SASMO Counting: A Grid Contains More Rectangles Than Its Individual Cells.

Contact Hanlin

Planning a first attempt or reviewing a topic you find difficult? Scan the QR code and send SASMO-GRID-PATHS-1111. Include your school year, country or competition region, experience and the question you want to discuss.

Scan to contact Hanlin on WeChat. Send SASMO-GRID-PATHS-1111.

Contact Hanlin on WeChat

On your phone, use the button or save the QR image and scan it within WeChat.

Official information and further reading: Source 1

Online Customer Service
Contact Customer Service