I can climb stairs either 1, 2, or 3 steps at a time. Our staircase has 20 steps. How many different ways can I go up the stairs?
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.
How do you say that this pattern will go on? Thanks!
Log in to reply
How did you do it? @Satvik Golechha
Log in to reply
I never did it, and neither did I say I did...
Log in to reply
@Satvik Golechha – -_- Bullcrap. How did you get it right then?
Log in to reply
@Krishna Ar – I never did, and neither did I say I did...
This is known as the Tribonacci Sequence , which is a close relation of the Fibonacci Sequence.
It does not have a "nice" closed from like the Fibonacci sequence, because the equation x 3 − x 2 − x − 1 = 0 does not have nice roots. It grows approximately as C × 1 . 8 4 n , where 1 . 8 3 9 is the approximate value of the largest absolute value of the roots.
I had the same logic. It does seem unnecessary to have such a large staircase if this is the intended method of solving.
Problem Loading...
Note Loading...
Set Loading...
Let 'F(N)' be the number of ways he can climb the stairs where N is the no: of stairs in the staricase.
So F(1)=1, F(2)=2, F(3)=4, F(4)=7, F(5)=13, F(6)=24
As u can see from the above series
F(k)= F(k-1)+F(k-2)+F(k-3)
Enough said!! F(20)= 121,415