Skip to main content

Fibonacci Sequence and Climbing Staircase problem

Hello Friends, So here is our next blog on Fibonacci  Sequence. In this blog I will introduce another problem whose solution is the Fibonacci Number. This problem is known as Climbing Staircase problem.

The Question is How many ways one can climb staircase with n steps, taking one or two steps at a time ??


How many ways one can climb staircase with n steps, taking one or two steps at a time ??
Questions Of Climbing Staircase 

Eg.

Suppose we have 3 steps to climb.

So we have a Staircase, we climb it by taking one step , one step , one step or two step , one step or one step, two step.

So If we have n-steps in Staircase , then how many different ways can we climb the Staircase?

So to answer this question we could make a table, considering small numbers of steps i.e n = 1,2,3,4,5

And we can list the number of ways to climb the Staircase. So Observe the table first column is number of stairs or steps. Second column is the list of ways one can climb by taking one or two steps at a time. Third column an  the total number of ways to climb Staircase. I hope you understood till here if not observe the table you will understand definitely.


This table represents How we can Climb Staircase by taking one or two steps at a time.
Ways to climb stairs 

By Observing the above table's third column  "an" you can see the fibonacci number are appearing. As the number of steps increases the answer is just the sum of previous two total number of ways . So here we got Fibonacci Sequence 1,2,3,5,8,13,21...

So why we are getting Fibonacci Sequence here can we do some sort of mathematical argument to reach the same result ? So let's give it a try. Because trying is what we can always do.
 So let's think about it again how to climb the Staircase taking one or two steps at a time. Did you get some lead ?  If you observe for the first step it is either one step or two right . So we can break it into two different ways. So n steps are there if you take your first step as one so left step to climb is n-1 right. If you take first step as 2 then left steps to climb is n-2 because we already climb 2 step.

Argument here is if you take first step as 1 then rest n-1 steps can be climbed as an-1. 
Or 
If first step is 2 then rest n-2 steps can be climbed as an-2 I hope you know what is an  if not go through the ways to climb table ones more.
And through logic the number of ways two climb n stairs Staircase is equal to a number of ways to climb that staircase where the first step is one step i.e. an-1 , Plus the number of ways to climb the Staircase when the first step is two step i.e. an-2 .
So we have 
 
                         an = an-1 +  an-2   

Which Is the recursion relation of Fibonacci Sequence that's why we are getting Fibonacci numbers. 
The difference though is we need the initial condition, so the initial values. We know that from table to climb one step Staircase there is only 1 way and to climb two steps Staircase there are 2 ways either 1,1 or 2 right. But this are not initial values of Fibonacci Sequence in fact 2 is unique Fibonacci number, which is 3rd Fibonacci number, and 1 can ce first Fibonacci number or second Fibonacci number. 
            a1=1=F2  
            a2=2=F3 
So we can say here   an=Fn+1
So the number of ways to climb an n steps staircase taking one or two steps at a time is n+1 Fibonacci number.

We have seen now two problems with Fibonacci number. The classic Rabbit population problem from Fibonacci and the Climbing Staircase problem. 
In Our Next Blog we will discuss about the GOLDEN RATIO. The connection between Fibonacci Number and Golden Ratio. 
   

Comments

Post a Comment

Popular posts from this blog

The Golden Ratio Divine Numbers By Luca Pacioli

Welcome. So below you can see very beautiful painting of Friar Luca Pacioli. Luca Pacioli was a religious man but he was also a Mathematician . And because of his standing as mathematician he became the teacher and good friend of Leonardo Da Vinci. Who is the most famous of all the renaissance men . Luca Pacioli  Luca Pacioli is known as the Father of Accounting and Bookkeeping. But our interest in him is because he was the author of a book called the "De Divina Proportione"  or "On the Divine proportion". The Divine proportion is a number . It's a number that we call now the Golden Ratio. Luca Pacioli thought this number was divine, was godly number. We are going to see that this number has a very close relationship with Fibonacci Sequence. What Is GOLDEN RATIO ?? We can understand what the Golden Ratio is by starting with a line segment and dividing the line segment into two segments. Lets Say one of length x and one of length y . Assuming that length x is lar...

Connection Between Fibonacci Numbers and The Golden Ratio

Welcome. In this blog I will tell you relation between the Fibonacci Sequences and the Golden Ratio.Before that below  you can see the statue of Fibonacci, made in 1863 by Giovanni Paganucci, a sculpture in florence, but kept in a ancient cemetery in pisa where the Fibonacci was born. Its is interesting that the likeness of Fibonacci in this statue and his iconic portrait probably looks nothing like Fibonacci, since no true drawings of him exist from 850 years ago . But nevertheless Italy still honors him with this sculpture.  Statue Of Fibonacci Let's Return to Fibonacci Numbers and Fibonacci recursion relation. Then we will show you how they are related to Golden Ratio. So let's do some mathematics. Any way what's the recursion relation do you remember?? The n+1 Fibonacci number is equal to the sum of preceding two that is nth Fibonacci number Plus n-1 Fibonacci number right .                         Fn+1 = Fn + Fn−...