Amanda can climb 1, 2, 3, or 4 stairs at a time. How many different ways can she climb up 20 stairs?
Check out my other problems
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.
For 1-4 stairs you can quickly figure out that there are 1, 2, 4 and 8 ways respectively to get there. Now to get to the n th stair, she must have come from either stair n − 4 , n − 3 , n − 2 , or n − 1 . So if f ( n ) is the number of ways, then f ( n ) = f ( n − 4 ) + f ( n − 3 ) + f ( n − 2 ) + f ( n − 1 ) . Using this equation, f ( 2 0 ) = 2 8 3 9 5 3 .