Jake needs to climb up 10 stairs to reach the next floor. Jake can take 1 or 2 steps at a time.
In how many ways can Jake climb up the 10 stairs?
Hint: Try a similar setup for a smaller number of stairs, say 4 or 5
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.
Consider the last step Jake takes before stepping to the top step. He either steps from the 8 th step or from the 9 th step.
Let's let f n denote the number of ways to reach the n th step by going up 1 or 2 steps at a time. We see that f 1 0 = f 8 + f 9 , since there are f 8 ways to reach the 8 th step and follow that with a step of 2 , while there are f 9 ways to reach the 9 th step, and follow that with a step of 1 .
Indeed, f 9 = f 7 + f 8 and...oh, well, these are the Fibonacci numbers, starting with f 1 = 1 and f 2 = 2 , and f n = f n − 2 + f n − 1 for n ≥ 3 .
With this indexing, f 1 0 = 8 9 .