Difference between revisions of "2010 AMC 8 Problems/Problem 25"
(→Solution 2) |
|||
Line 18: | Line 18: | ||
Thus, there are <math>\boxed{\textbf{(E) } 24}</math> ways to get to step <math>6.</math> | Thus, there are <math>\boxed{\textbf{(E) } 24}</math> ways to get to step <math>6.</math> | ||
− | == | + | |
+ | ==Solution 2 (Generating a Function)== | ||
+ | We first start by doing some simple casework to try and find the number of ways we can get to the 1st, 2nd, and 3rd Stairs. The number of ways to climb one stair is <math>1</math>. There are <math>2</math> ways to climb two stairs: <math>1</math>,<math>1</math> or <math>2</math>. For 3 stairs, there are <math>4</math> ways: | ||
+ | (<math>1</math>,<math>1</math>,<math>1</math>) | ||
+ | (<math>1</math>,<math>2</math>) | ||
+ | (<math>2</math>,<math>1</math>) | ||
+ | (<math>3</math>) | ||
+ | |||
+ | Next we must try to generalize a recursive function to find the number of ways to climb the stairs. We start out with <math>f(n)</math>, which denotes the number of ways to climb the stairs. Then we must realize, To reach the nth stair, Jeff must take a 1 step from the <math>f(n-1)</math>th stair, a double step from the <math>f(n-2)</math>th stair, or a triple step from the <math>f(n-3)</math>th stair. Therefore, the number of ways of reaching the nth step is the number of ways of reaching the <math>f(n-1)</math>th plus the number of ways of reaching the <math>f(n-2)</math>th plus the number of ways of reaching the <math>f(n-3)</math>th. | ||
+ | stair. So we have our generalized recursive function: <cmath>f(n)=f(n-1)+f(n-2)+f(n-3)</cmath> | ||
+ | |||
+ | Now that we have the function and a few of the values we can try to find <math>f(6)</math> | ||
+ | |||
+ | <cmath>f(1)=1</cmath> | ||
+ | <cmath>f(2)=2</cmath> | ||
+ | <cmath>f(3)=f(3-1)+f(3-2)+f(3-3)=f(2)+f(1)+f(0)=2+1+1=4</cmath> | ||
+ | <cmath>f(4)=f(4-1)+f(4-2)+f(4-3)=f(3)+f(2)+f(1)=4+2+1=7</cmath> | ||
+ | <cmath>f(5)=f(5-1)+f(5-2)+f(5-3)=f(4)+f(3)+f(2)=7+4+2=13</cmath> | ||
+ | <cmath>f(6)=f(6-1)+f(6-2)+f(6-3)=f(5)+f(4)+f(3)=13+7+4=24</cmath> | ||
+ | |||
+ | Thus there are 24 ways to get to the 6th stair so the answer is <math>\boxed{\textbf{(E) } 24}</math> | ||
+ | |||
+ | ~ algebraic_algorithmic | ||
+ | |||
+ | |||
+ | |||
https://youtu.be/5UojVH4Cqqs?t=4560 | https://youtu.be/5UojVH4Cqqs?t=4560 | ||
Latest revision as of 12:02, 2 January 2025
Contents
Problem
Everyday at school, Jo climbs a flight of stairs. Jo can take the stairs , , or at a time. For example, Jo could climb , then , then . In how many ways can Jo climb the stairs?
Solution 1
A dynamics programming approach is quick and easy. The number of ways to climb one stair is . There are ways to climb two stairs: , or . For 3 stairs, there are ways: (,,) (,) (,) ()
For four stairs, consider what step they came from to land on the fourth stair. They could have hopped straight from the 1st, done a double from #2, or used a single step from #3. The ways to get to each of these steps are ways to get to step 4. The pattern can then be extended: steps: ways. steps: ways. steps: ways.
Thus, there are ways to get to step
Solution 2 (Generating a Function)
We first start by doing some simple casework to try and find the number of ways we can get to the 1st, 2nd, and 3rd Stairs. The number of ways to climb one stair is . There are ways to climb two stairs: , or . For 3 stairs, there are ways: (,,) (,) (,) ()
Next we must try to generalize a recursive function to find the number of ways to climb the stairs. We start out with , which denotes the number of ways to climb the stairs. Then we must realize, To reach the nth stair, Jeff must take a 1 step from the th stair, a double step from the th stair, or a triple step from the th stair. Therefore, the number of ways of reaching the nth step is the number of ways of reaching the th plus the number of ways of reaching the th plus the number of ways of reaching the th. stair. So we have our generalized recursive function:
Now that we have the function and a few of the values we can try to find
Thus there are 24 ways to get to the 6th stair so the answer is
~ algebraic_algorithmic
https://youtu.be/5UojVH4Cqqs?t=4560
~ pi_is_3.14
Video by MathTalks
See Also
2010 AMC 8 (Problems • Answer Key • Resources) | ||
Preceded by Problem 24 |
Followed by Last Problem | |
1 • 2 • 3 • 4 • 5 • 6 • 7 • 8 • 9 • 10 • 11 • 12 • 13 • 14 • 15 • 16 • 17 • 18 • 19 • 20 • 21 • 22 • 23 • 24 • 25 | ||
All AJHSME/AMC 8 Problems and Solutions |
The problems on this page are copyrighted by the Mathematical Association of America's American Mathematics Competitions.