Find a Path

A recursive sequence is defined as A ( x , y ) = A ( x 1 , y ) + A ( x , y 1 ) A(x,y)=A(x-1,y)+A(x,y-1) for all integers x , y > 0 x,y>0 , equals 0 0 if x < 0 x<0 or y < 0 y<0 , and A ( x , 0 ) = A ( 0 , x ) = 1 A(x,0)=A(0,x)=1 for all positive integers x x . Find the value of A ( 16 , 14 ) A(16, 14) .


The answer is 145422675.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Brian Miyatake
May 14, 2019

Consider a grid that is 16 16 meters long and 14 14 meters wide and stand at the lower left corner. Given that you can move only up and right in single meter increments, how many ways can you get to the top right corner?

This is essentially the same problem as the one posted above, because the amount of ways to get to a given point ( x , y ) (x,y) on the grid is the sum of the ways to get to the point below it ( x , y 1 ) (x, y-1) and the number of ways to get to point to the left of it ( x 1 , y ) (x-1, y) . Thus, A ( x , y ) = ( x + y x ) A(x,y)=\left(\begin{array}{c}x+y\\ x\end{array}\right) or identically, ( x + y y ) \left(\begin{array}{c}x+y\\ y\end{array}\right) and A ( 16 , 14 ) = ( 30 14 ) = 145422675 A(16, 14) = \left(\begin{array}{c}30\\ 14\end{array}\right)=145422675 .

Alternatively, one could prove that A ( x , y ) = ( x + y x ) A(x,y)=\left(\begin{array}{c}x+y\\ x\end{array}\right) by induction.

This is a (slightly disguised) Pascal's triangle - essentially a rotation of the usual diagram.

Chris Lewis - 2 years ago
Chew-Seong Cheong
May 16, 2019

From the first few positive integer values of x x and y y , it appears that A ( x , y ) = ( x + y y ) A(x,y) = \dbinom {x+y}y . The following prove that it is so.

A ( x , y ) = A ( x 1 , y ) + A ( x , y 1 ) If A ( x , y ) = ( x + y y ) x , y Z + = ( x + y 1 y ) + ( x + y 1 y 1 ) = ( x + y 1 ) ! y ! ( x 1 ) ! + ( x + y 1 ) ! ( y 1 ) ! x ! = ( x + y ) ( x + y 1 ) ! x ! y ! = ( x + y ) ! x ! y ! = ( x + y y ) QED \begin{aligned} A(x,y) & = A(x-1,y) + A(x,y-1) & \small \color{#3D99F6} \text{If } A(x,y) = \binom {x+y}y \ \forall \ x, y \in \mathbb Z^+ \\ & = \binom {x+y-1}y + \binom {x+y-1}{y-1} \\ & = \frac {(x+y-1)!}{y!(x-1)!} + \frac {(x+y-1)!}{(y-1)!x!} \\ & = \frac {(x+y)(x+y-1)!}{x!y!} \\ & = \frac {(x+y)!}{x!y!} \\ & = \binom {x+y}y & \small \color{#3D99F6} \text{QED} \end{aligned}

Therefore, A ( 16 , 14 ) = ( 30 14 ) = 145422675 A(16,14) = \dbinom {30}{14} = \boxed{145422675} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...