Combinations to Reach Nth Stair by moving up one step or two step at a time.
2010
25
Jan
There is a stair, and a person can go up the stairs, in steps of one or steps of two (ie Skip a step and jump). Find in how many combinations can a person reach the Nth stair.
Show the AnswerThe answer to this can be found out by induction.
To reach the Nth Stair, we can reach by jumping one step from the (N - 1)th stair or jumping 2 steps from the (N-2)th chair.
If we denote Number of Ways of reach N as F(N)
F(N) = F(N-1) + F(N-2).
Does that ring any bells ?
It is the general form of the Nth term of the Fibonacci sequence.
So to reach the Nth stair, the (N+1)th number in the Fibonacci sequence is the total Number of combination, if the sequence starts from 0 as shown below.
F(0) = 0
F(1) = 1
F(2) = 1
F(3) = 2
etc...
Similar Posts
Related Searches
- Pyramid Stair-step Puzzle
- Enable Right Click Paste In Linux
- Camera Driver For Sony Vpccw26fg Windows7
- Dell Studio 14z Vs Sony Vaio Cw
- Sony Vaio Cw Linux Compatible
- Canon Sx120is Ubuntu Camera
- Reviews About Sony Vaio Vpccw26fg
- Windows 32 Bit Or 64 Bit
- Usable Ram 1500 Speed
- Gddr3 Graphics Ram On Sony Vaio Vpccw26fg
- Pyramid Division Multiplication Addition Subtraction Puzzle
- Dell Inspiron 15 Review Linux Compatible
- Error Getting Mechanize
- Accessible Of Drupal

4 days 1 hour ago
6 days 16 hours ago
1 week 4 days ago
2 weeks 1 day ago
2 weeks 3 days ago
2 weeks 3 days ago
2 weeks 4 days ago
2 weeks 5 days ago
2 weeks 6 days ago
2 weeks 6 days ago