How many ways are there to to climb n steps (recurrence relations)?

Eclair_de_XII
Messages
1,082
Reaction score
91
Homework Statement
Tom wants to climb ##n## steps. He can either climb one step at a time, or two steps at a time.
(a) How many ways are there for him to climb ##n## steps if he initially takes one step?
(b) How many ways are there if he initially takes two steps?
(c) Use these two answers in order to derive a recurrence relation for ##s_n##, the number of ways to climb ##n## steps.
Relevant Equations
The answer to (c) as Google-searched: ##s_n=s_{n-1}+s_{n-2}##.
(a) Okay, so if Tom climbs the first step, then he has ##n-1## steps to climb. So the number of ways to climb ##n## steps given he has initially climbed one, is ##s_n=s_{n-1}##.
(b) Similarly, ##s_n=s_{n-2}##.
 
Physics news on Phys.org
The words you have written are correct but the equations are not. ##s_n## represents the number of ways to climb n steps, not the number of ways to climb n steps when the first step is 1, nor the number of ways to climb n steps when the first step is 2. So you need to delete the characters "##s_n=##" from your answers.

The recurrence relation is what you have already written under 'Relevant Equations'.
 
So I just add the two answers togther?
 
Err, how do you mark this thread as "solved"?
 
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top