Upstairs

There is a staircase with 20 steps, and you are only allowed to go up 1 or 2 steps each time.

How many different possibilities are there of going all the way up this staircase?


The answer is 10946.

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.

3 solutions

Michael Mendrin
Oct 14, 2018

k = 0 10 ( 20 k k ) = 10946 \displaystyle \sum _{ k=0 }^{ 10 }{ \left( \begin{matrix} 20-k \\ k \end{matrix} \right) } =10946

Consider the following combinations, and count permutations of each

20 single steps 0 double steps
18 single steps 1 double step
16 single steps 2 double steps
etc.


Let a n a_{n} be the number of ways of climbing a staircase of n n steps, 1 or 2 steps at a time. Clearly a 1 = 1 a_{1} = 1 and a 2 = 2 a_{2} = 2 . Now with a n a_{n} for n > 2 n \gt 2 , we can take any sequence covering n 1 n - 1 steps and then rise 1 step more, or we can take any sequence covering n 2 n - 2 steps and rise 2 steps in one go. With these two scenarios being mutually exclusive, we see that for n > 2 n \gt 2 , a n = a n 1 + a n 2 a_{n} = a_{n - 1} + a_{n - 2} , which we recognize as a Fibonacci formulation. So working our way up the sequence 1 , 2 , 3 , 5 , 8 , 13 , . . . . . 1,2,3,5,8,13, ..... until the 20th step we obtain a desired value of 10946 \boxed{10946} .

Bartholomé Duboc
Oct 14, 2018

Let's just start with smaller stairs:

**1 step= 1 possibilty,

2 steps= 2 possibilities,

3 steps= 3 possibilities,

4 steps= 5 possibilities **
Then, we notice that the number of possibilities to climp 5 steps can be given by: (1) If we walk up 1 step at the beginning, there are 4 steps left that we can climb in 5 ways.

* (2) * if we walk up 2 steps at the beginning, there are 3 steps left that we can climb in 3 ways. So the number of possibilities to climb 5 steps= (1) + (2)= possibilities for 4 steps+ possibilities for 3 steps=8 possibilities
The generalization is: U n = U ( n 1 ) + U ( n 2 ) , U o = 1 , U 1 = 1 Un=U(n-1)+U(n-2), Uo=1, U1=1

(With the help of your calculator or by repeating it 20 times) The result is U 20 = U 19 + U 18 = 6765 + 4181 = 10946 U20=U19+U18=6765+4181=10946

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...