A staircase has n steps. A man climbs either one step or two steps at a time .Prove that the number of ways in which he can climb up the staircase , starting from the bottom , is
This discussion board is a place to discuss our Daily Challenges and the math and science
related to those challenges. Explanations are more than just a solution — they should
explain the steps and thinking strategies that you used to obtain the solution. Comments
should further the discussion of math and science.
When posting on Brilliant:
Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.
Markdown
Appears as
*italics* or _italics_
italics
**bold** or __bold__
bold
- bulleted - list
bulleted
list
1. numbered 2. list
numbered
list
Note: you must add a full line of space before and after lists for them to show up correctly
# I indented these lines
# 4 spaces, and now they show
# up as a code block.
print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.
print "hello world"
Math
Appears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3
2×3
2^{34}
234
a_{i-1}
ai−1
\frac{2}{3}
32
\sqrt{2}
2
\sum_{i=1}^3
∑i=13
\sin \theta
sinθ
\boxed{123}
123
Comments
The answer is already mentioned, so I'll just express it algebraically.
Let Tn be the number of steps required to climb a staircase with n steps.
T1=1
T2=2
For n≥3, as @Michael Mendrin mentioned, we can start with one step, and the rest of it are Tn−1 steps. If we start on two steps, the rest of it are Tn−2 steps. Now we have a conclusion that
Tn=Tn−1+Tn−2
This is actually the Fibonacci Sequence, but we have to shift it to the right, since it starts with 1,2,... instead of the typical 1,1,2,.... Hence,
Well, let's see, let's say there's a ways to climb up n−2 steps, and b ways to climb up n−1 steps, so if we backtrack from the nth step either 1 or 2 steps, then those would be the number of ways to get to those previous steps. Hence, the number of ways to get to the nth step is a+b, and we're looking at Fibonacci numbers. The formula give was a dead giveaway to the answer to this one. Thanks for the hint!
Addendum: If one wonders if starting at n−2 steps, there are actually 2 ways to get to the nth step, in fact the 1+1 steps to the nth step is already part of counting the ways up to and through the n−1th step. So, it's still a string of honest Fibonacci numbers.
The number of ways is just the fibonacci sequence. You can see this by noting the number of ways to climb n steps is equal to the number of ways where the second to last step gets you up n-2 steps, plus the number of ways where the second to last step gets you up n-1 steps. If s(n) represents the number of ways to climb up n steps, then it follows that s(n) + s(n+1) = s(n+2). Since s(1) = 1 and s(2) = 2 by inspection, this is just the fibonacci sequence shifted by 1, as expressed in the formula.
We can notice that this looks similar to Binet’s Theorem, which is an explicit formula to give the nth number in the fibonacci sequence. In this case, it gives the (n+1)th term. The Fibonacci sequence is 1 1 2 3 5 8… while this sequence is 1 2 3 5 8… because the number of ways to get to each step adds up. This sequence is just the Fibonacci sequence with the first two terms as 1 and 2. QED
As Christopher and Michael pointed out, you should have tried generating the first few terms of the series. You'll find it's a fibonacci series and if you are not familiar with the formula, look it up. :)
Hint:- Use recurrence relations. Define Tn as the number of ways to climb a staircase with n steps. Shows its relation with Tn−1 and Tn−2. You should come up with a familiar relation.
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
The answer is already mentioned, so I'll just express it algebraically.
Let Tn be the number of steps required to climb a staircase with n steps.
T1=1
T2=2
For n≥3, as @Michael Mendrin mentioned, we can start with one step, and the rest of it are Tn−1 steps. If we start on two steps, the rest of it are Tn−2 steps. Now we have a conclusion that
Tn=Tn−1+Tn−2
This is actually the Fibonacci Sequence, but we have to shift it to the right, since it starts with 1,2,... instead of the typical 1,1,2,.... Hence,
Tn=Fn+1
Log in to reply
Thank you sir @Christopher Boo @Michael Mendrin @Aneesh Kundu @Siddhartha Srivastava @Agnishom Chattopadhyay
Well, let's see, let's say there's a ways to climb up n−2 steps, and b ways to climb up n−1 steps, so if we backtrack from the nth step either 1 or 2 steps, then those would be the number of ways to get to those previous steps. Hence, the number of ways to get to the nth step is a+b, and we're looking at Fibonacci numbers. The formula give was a dead giveaway to the answer to this one. Thanks for the hint!
Addendum: If one wonders if starting at n−2 steps, there are actually 2 ways to get to the nth step, in fact the 1+1 steps to the nth step is already part of counting the ways up to and through the n−1th step. So, it's still a string of honest Fibonacci numbers.
The number of ways is just the fibonacci sequence. You can see this by noting the number of ways to climb n steps is equal to the number of ways where the second to last step gets you up n-2 steps, plus the number of ways where the second to last step gets you up n-1 steps. If s(n) represents the number of ways to climb up n steps, then it follows that s(n) + s(n+1) = s(n+2). Since s(1) = 1 and s(2) = 2 by inspection, this is just the fibonacci sequence shifted by 1, as expressed in the formula.
We can notice that this looks similar to Binet’s Theorem, which is an explicit formula to give the nth number in the fibonacci sequence. In this case, it gives the (n+1)th term. The Fibonacci sequence is 1 1 2 3 5 8… while this sequence is 1 2 3 5 8… because the number of ways to get to each step adds up. This sequence is just the Fibonacci sequence with the first two terms as 1 and 2. QED
@DEEPANSHU GUPTA @Sanjeet Raria @Sandeep Bhardwaj @Calvin Lin @Michael Mendrin @Pranjal Jain @Agnishom Chattopadhyay @Aditya Raut @Krishna Sharma
Please help
Log in to reply
@Pranshu Gaba @Pranav Arora @Mursalin Habib
and others you too please help
As Christopher and Michael pointed out, you should have tried generating the first few terms of the series. You'll find it's a fibonacci series and if you are not familiar with the formula, look it up. :)
Where's n in that expression??
Log in to reply
O sorry thank you
Hint:- Use recurrence relations. Define Tn as the number of ways to climb a staircase with n steps. Shows its relation with Tn−1 and Tn−2. You should come up with a familiar relation.
I think it has got something to do with Fibonacci numbers cause the expression gives the n+1 th Fibonacci number.
I encountered a similar question in the NMTC screening test this year.