SOLUTION: Find the number of paths from A to B, moving up and right only. Notice that two lines have been left out. {{{drawing(400,2400/11,-1,10,-1,5, line(0,0,9,0),line(0,1,9,1),line

Algebra.Com
Question 1200281: Find the number of paths from A to B, moving up and right
only. Notice that two lines have been left out.

https://ibb.co/3c2Fk1X

Found 2 solutions by greenestamps, Edwin McCravy:
Answer by greenestamps(13200)   (Show Source): You can put this solution on YOUR website!


This problem could probably be solved using formal mathematics with combinatorics, by finding the total number of paths from A to B without the missing lines and subtracting the number of paths that would use either or both of the missing lines.

But probably an easier method, since the diagram is relatively small, is the brute force method of counting the number of possible paths to each point on the grid.

The diagrams below show the process, leading to the final answer.

   1 --- X --- X --- X --- X --- X --- X --- X --- X --- X
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- X --- X --- X --- X --- X     X --- X --- X --- X
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- X --- X --- X --- X --- X --- X --- X --- X --- X
   |     |           |     |     |     |     |     |     |
   |     |           |     |     |     |     |     |     |
   1 --- X --- X --- X --- X --- X --- X --- X --- X --- X
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1


   1 --- 5 --- X --- X --- X --- X --- X --- X --- X --- X
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 4 --- X --- X --- X --- X     X --- X --- X --- X
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 3 --- X --- X --- X --- X --- X --- X --- X --- X
   |     |           |     |     |     |     |     |     |
   |     |           |     |     |     |     |     |     |
   1 --- 2 --- 3 --- 4 --- 5 --- 6 --- 7 --- 8 --- 9 ---10
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1


   1 --- 5 ---12 --- X --- X --- X --- X --- X --- X --- X
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 4 --- 7 --- X --- X --- X     X --- X --- X --- X
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 3 --- 3 --- 7 ---12 ---18 ---25 ---33 ---42 ---52
   |     |           |     |     |     |     |     |     |
   |     |           |     |     |     |     |     |     |
   1 --- 2 --- 3 --- 4 --- 5 --- 6 --- 7 --- 8 --- 9 ---10
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1


   1 --- 5 ---12 --- X --- X --- X --- X --- X --- X --- X
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 4 --- 7 ---14 ---26 ---44    25 ---58 ---100 --152
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 3 --- 3 --- 7 ---12 ---18 ---25 ---33 ---42 ---52
   |     |           |     |     |     |     |     |     |
   |     |           |     |     |     |     |     |     |
   1 --- 2 --- 3 --- 4 --- 5 --- 6 --- 7 --- 8 --- 9 ---10
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1


   1 --- 5 ---12 ---26 ---52 ---96 ---121---179---279---431
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 4 --- 7 ---14 ---26 ---44    25 ---58 ---100 --152
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 3 --- 3 --- 7 ---12 ---18 ---25 ---33 ---42 ---52
   |     |           |     |     |     |     |     |     |
   |     |           |     |     |     |     |     |     |
   1 --- 2 --- 3 --- 4 --- 5 --- 6 --- 7 --- 8 --- 9 ---10
   |     |     |     |     |     |     |     |     |     |
   |     |     |     |     |     |     |     |     |     |
   1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1 --- 1

ANSWER: (If I didn't make any errors) 431


Answer by Edwin McCravy(20054)   (Show Source): You can put this solution on YOUR website!
Note (er, rather, rant) :)

Greenestamps was exactly right by his brute force solution. Below is the
formal mathematical combinatorial solution. Brute force methods, especially
computer brute force, have taken a lot of fun out of formal mathematics, as well
as the need for even teaching it.  My observations are that the entire
mathematics curriculum from high school up through the undergraduate college
level was designed so that the student would be able to solve differential
equations.   But nowadays, the computer can solve all differential equations by
brute force.  I predict the day when no mathematics will be taught in schools.
Why do math when you can get the answer by pointing and clicking with a mouse?

--------------------------------------------------------------------------

The figure below has the two omitted lines CD and EF in red. 



First we'll find the number of paths for the entire grid including CD and EF.
Then we'll subtract the number of paths that use one or both of CD and EF.

Let N(AB) = the number of paths from A to B each of which is described by a
unique distinguishable permutation of RRRRRRRRRUUUU, 13 moves, 9 units right and
4 units up, of which there are .

To find the number of paths to subtract from the 715, we will need the following
partial paths:

Let N(AC) = the number of paths from A to C each of which is described by a
unique distinguishable permutation of RRU, 3 moves, 2 units right and 1 unit up,
of which there are .

Let N(DB) = the number of paths from D to B each of which is described by a
unique distinguishable permutation of RRRRRRRUU, 9 moves, 7 units right and 2
units up, of which there are .

Let N(AE) = the number of paths from A to E each of which is described by a
unique distinguishable permutation of RRRRRUUU, 8 moves, 5 units right and 3
units up, of which there are .

Let N(FB) = the number of paths from F to B each of which is described by a
unique distinguishable permutation of RRRU, 4 moves, 3 units right and 1 unit
up, of which there are .

Let N(DE) = the number of paths from D to E each of which is described by a
unique distinguishable permutation of RRRU, 4 moves, 3 units right and 1 unit
up, of which there are .

And of course, we need, the number of very short partial paths, of 1 move each. 
N(CD) = 1 and N(EF) = 1,

The answer will be

N(AB) - [N(AC)*N(CD)*N(DB) + N(AE)*N(EF)*N(FB)] + [N(AC)*N(CD)*N(DE)*N(EF)*N(FB)]

The middle term counts TWICE the paths through both CD and EF, and thus
subtracts that number twice.  This is why we need the third term, to correct by
adding on the number of paths through both CD and EF. Calculating,

715 - [3*1*36 + 56*1*4] + [3*1*4*1*4] = 431.

Edwin

RELATED QUESTIONS

Find the number of paths from A to B in the grid below, where each step is down or to the (answered by CPhill)
Hi, I desperately need help with a probability and statistics problems. Q) How many (answered by stanbon)
A 4x4x4 cube is ruled on all six of its faces with 16 congruent squares. How many paths... (answered by greenestamps)
Find the number of paths from A to B in the grid below, so that * Each step is down or... (answered by CPhill,greenestamps)
A 4x4x4 cube is ruled on all six of its faces with 16 congruent squares. How many paths... (answered by greenestamps)
In order to solve a quadratic equation by completing the square, place the letter of the... (answered by edjones)
A 4x4x4 cube is ruled on all six of its faces with 16 congruent squares. How many paths... (answered by greenestamps)
A 4x4x4 cube is ruled on all six of its faces with 16 congruent squares. How many paths... (answered by greenestamps)
Question 1: A work word problem If Adam and Beth would paint the room together, they... (answered by ankor@dixie-net.com)