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?
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.
Let a n be the number of ways of climbing a staircase of n steps, 1 or 2 steps at a time. Clearly a 1 = 1 and a 2 = 2 . Now with a n for n > 2 , we can take any sequence covering n − 1 steps and then rise 1 step more, or we can take any sequence covering n − 2 steps and rise 2 steps in one go. With these two scenarios being mutually exclusive, we see that for 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 , 1 3 , . . . . . until the 20th step we obtain a desired value of 1 0 9 4 6 .
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
(With the help of your calculator or by repeating it 20 times) The result is U 2 0 = U 1 9 + U 1 8 = 6 7 6 5 + 4 1 8 1 = 1 0 9 4 6
Problem Loading...
Note Loading...
Set Loading...
k = 0 ∑ 1 0 ( 2 0 − k k ) = 1 0 9 4 6
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.