Counting monotone paths that avoid one grid point
To count monotone grid paths that miss one point, count all paths and subtract the ones that pass through it. The paths through the point split into a first leg and a second leg that you can count separately.
Total paths first
Start with a grid whose corners are (0, 0) and (3, 3), and allow only east and north steps. Each path has six steps, three east and three north, so the total is C(6, 3) = 20. That total is the baseline. Everything after it is a subtraction of paths you are not allowed to use. The combination calculator takes n = 6 and r = 3 and returns 20, matching the first worked case. Reading six steps with three of each direction follows the same logic as the guide on choosing step positions. Counting the total before looking at the forbidden point also gives you a ceiling to compare against, since the answer cannot be negative or larger than 20.
Why paths through a point split in two
A path that passes through (1, 1) can be cut at that point. The first part runs from (0, 0) to (1, 1), and the second part runs from (1, 1) to (3, 3). Any first part can be joined to any second part, and every complete path through the point arises in exactly one way. This is the multiplication rule: the number of complete paths through the point is the product of the number of first legs and the number of second legs. The split is unique because a monotone path visits (1, 1) at most once, so there is no double counting from visiting the point twice.
Counting the two legs
The first leg needs one east and one north step, which can be ordered in C(2, 1) = 2 ways. The second leg goes two east and two north, four steps, so C(4, 2) = 6 ways. The combination calculator confirms the second value with n = 4 and r = 2. Multiplying the legs gives 2 × 6 = 12 paths through (1, 1). The basic calculator can do that product, as in the third worked case. Both legs follow the same step-position logic as the plain path count: the leg length is the number of steps, and the choose-number is how many of them go north.
Subtracting to get the answer
Paths that avoid the point are all paths minus the paths through it: 20 - 12 = 8. The eight survivors are the ones that go around (1, 1), such as EENENN or NNEEEN, depending on which side they pass. A sanity check is to list a few by hand. Any path whose first two steps are EE or NN cannot touch (1, 1), because it has already left the diagonal corner region. That gives paths starting EE or NN, which is a quick lower bound on the answer. The subtraction in the final worked case, 20 - 12, produces 8 and finishes the problem.
A four-by-four example
Now take a grid from (0, 0) to (4, 4) and forbid the center point (2, 2). The total is C(8, 4) = 70. Paths through the center have a first leg of C(4, 2) = 6 and a second leg of C(4, 2) = 6, so 36 paths cross the center. Avoiding it leaves 70 - 36 = 34. The center is a high-traffic point, which is why more than half the paths use it. A corner-adjacent point such as (1, 0) would exclude a different share. The method does not change with the choice of point, only the leg counts do.
Two forbidden points
Excluding two points is harder because some paths use both. Take the same 3-by-3 grid and forbid (1, 1) and (2, 2). Paths through (1, 1) number 12, and by symmetry paths through (2, 2) number 12. Paths through both are 2 × 2 × 2 = 8, since each of the three legs has two arrangements. Adding 12 and 12 counts those 8 twice, so the union is 12 + 12 - 8 = 16, and the paths avoiding both are 20 - 16 = 4. Subtracting 12 twice would give a negative number, which is the signal that overlapping sets need inclusion and exclusion. This is why the single-point method should not be repeated blindly for several points.
Checking the answer by a second route
The count of 8 can be confirmed without subtraction. Paths that avoid (1, 1) must leave the start by going two steps in the same direction or reach the diagonal elsewhere. Count the ones that begin EE: after two east steps the walker stands at (2, 0), and the remaining four steps, one east and three north, can be ordered in C(4, 1) = 4 ways. By symmetry, the paths that begin NN also number 4. Those 8 paths all avoid (1, 1), because their second step already carries them to x = 2 or y = 2. A path beginning EN or NE is at (1, 1) after two steps, so it is excluded. Adding 4 and 4 gives 8, which agrees with 20 - 12. A direct count like this takes longer but protects against a setup error in the subtraction. A point outside the rectangle between start and finish, such as (4, 1) on this grid, is never visited by a monotone path that ends at (3, 3), so nothing is subtracted for it.
Scope and assumptions
Everything here applies to an ideal grid with only east and north steps. It does not account for obstacles that block an edge but not a point, for diagonal moves, or for paths that may revisit a point. The numbers are counts, not distances, and every path has the same length. The calculators handle the combinations and the products, but the setup, namely which point is forbidden and which legs result, is done by the solver. Writing the forbidden point, the two legs and the subtraction on separate lines makes each step easy to verify. A table with three columns (point, first leg, second leg) keeps larger problems organized. For the 3-by-3 grid and the point (1, 1) the row reads 2, 6 and 12. For the 4-by-4 grid and the point (2, 2) it reads 6, 6 and 36. When the same point is checked against grids of several sizes, the table also shows how quickly the through-point share changes, from 12 of 20 paths here to 36 of 70 on the larger grid, a drop in share from 60 percent to about 51 percent. Keep the grid corners in the table as well, since the same point gives different counts on different grids.
Reproduce the checks
All paths
Open the Combination calculator and enter:
- Total items n
6- Items selected r
3
Expected output:
Combinations
20Three of the six steps are north.
Suffix from the specified point
Open the Combination calculator and enter:
- Total items n
4- Items selected r
2
Expected output:
Combinations
6The suffix needs two east and two north steps.
Paths through the point
Open the Basic calculator and enter:
- First number
2- Operation
multiply- Second number
6
Expected output:
Result
12Every prefix pairs with every suffix.
Paths avoiding the point
Open the Basic calculator and enter:
- First number
20- Operation
subtract- Second number
12
Expected output:
Result
8Subtract the single forbidden set.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.