162

Alex is climbing a staircase with 10 steps. With each move, he can go up either 1 step or 2 steps. In how many different ways can Alex reach the top of the staircase?

When coming down the same staircase, Alex is allowed to jump over any number of steps — he may even jump directly from the top to the ground in one go.How many different ways can Alex jump down the staircase?

Answer

a) 89; b) 29 = 512

SOLUTIOn

Part (a): Climbing the stairs

Let’s denote by an the number of different ways Alex can climb a staircase with n steps, given that at each move he may go up either 1 step or 2 steps.

We can reason recursively:

     
  • To reach step 1, there's only 1 way — a single 1-step move. So a₁ = 1.
  •  
  • To reach step 2, there are 2 ways: either (1 + 1) or (2). So a₂ = 2.

For any n > 2, Alex can reach the top in one of two ways:

     
  • By first climbing 1 step, and then climbing the remaining n − 1 steps — there are an−1 such ways.
  •  
  • By first climbing 2 steps, and then climbing the remaining n − 2 steps — there are an−2 such ways.

This gives the recurrence relation:

an = an−1 + an−2

This is the Fibonacci sequence starting from a₁ = 1 and a₂ = 2. Calculating up to n = 10:

     
  • a₃ = 3
  •  
  • a₄ = 5
  •  
  • a₅ = 8
  •  
  • a₆ = 13
  •  
  • a₇ = 21
  •  
  • a₈ = 34
  •  
  • a₉ = 55
  •  
  • a₁₀ = 89

Answer: Alex can climb the staircase in 89 different ways.


Part (b): Descending the stairs

Now suppose Alex is jumping down the same staircase. He is allowed to jump over any number of steps, including jumping all the way from the top to the ground in one move.

We can think of the staircase as having 9 gaps between the 10 steps. At each of these 9 positions, Alex can make a binary choice:

     
  • Jump over the step (i.e. don't land there)
  •  
  • Land on the step

Each sequence of decisions corresponds to a unique descent path. Since each of the 9 gaps has 2 options, the total number of descent patterns is:

2⁹ = 512

Answer: Alex can descend the staircase in 512 different ways.

Subscribe to receive updates!

Be up-to-date with our recent updates, new problems and answers!

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Our courses

Get ready for olympiads with free problems, extracurricular topics and our courses

Mathematics

Programming

Where do you hold your classes?
We hold our classes online or on-site on Saturdays at our branch in Pimlico Academy, London.
You can find our timetable here.
What do you need to start learning online?
For lessons you only need a computer or phone with a microphone, camera and Internet access. Wherever you are - in London, Nottingham, New York or Bali - online lessons will be at hand.
When can I take the trial lesson?
You can get acquainted with the school at any time convenient for you. To do this, just leave a request and sign up for a lesson.
What should I expect from the trial lesson?
The trial lesson is a 30-minute online session designed to get a sense of how your child approaches mathematical thinking and problem solving. (In practice, it often runs a bit longer if the student is engaged!)

We typically explore a range of fun and challenging problems drawn from competitions. We adapt the difficulty based on how the student responds, aiming to make it both accessible and stimulating.

After the session, we’ll have a quick conversation with the parent to share observations and suggest a personalised path forward.
I can't attend class, what should I do?
It is OK, it happens! Students have the opportunity to cancel a lesson up to 8 hours before the scheduled time without loss of payment. So you can reschedule it for a convenient time, and the teacher will have the opportunity to
I don't have much free time, will I have time to study?
Learning can take place at your own pace. We will select a convenient schedule and at any time we will help you change the schedule, take a break or adjust the program.
How long is one lesson?
All classes last 1 hour.
Hear from some of our amazing students who already achieved incredible results with us!
"Olympiad Maths Lessons helped me a lot to get the Gold medal in Junior Maths Challenge"
St. Paul's Student
"Thanks to the 'Data Science' and 'Coding in Python' lessons I got accepted to my dream university."
Michael
Data Science Student
Warwick University
"Great courses, which thoroughly explained topics beyond the capability of the GCSE answer sheet. Thanks so much."
Ivan
GCSE Student in Dubai
"Financial Mathematics! Best course to understand Python and Mathematics behind Finance!"
Gleb
VC Investor
"We got silver in PMC! Thanks George!"
Mum of St. Paul's Student
Prepare for the Primary Maths Challenge
"My daughter took a batch of 10 classes with George to understand Python with Turtle. I found George extremely knowledgeable and accessible."
Dad of Latymer School Student
Python with Turtle

Contact us

...or ask us anything

Ask about our courses and offerings, and we will help you choose what works best for you.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.