سوال ۱۱۱ کنکور ارشد علوم کامپیوتر ۱۴۰۳
اهمیت
۰/۵
به چند طریق میتوان یک پلکان ۱۱تایی را طی کرد، بهطوریکه در هر قدم، یک پله یا دو پله بتوان طی کرد؟
پاسخ صحیح: گزینهٔ D — ۱۴۴
پاسخ تشریحی
Let be the number of ways to climb a staircase of steps using moves of or steps. Classify the climbs by the first move:
- If the first move is step, the remaining ways equal .
- If the first move is steps, the remaining ways equal .
This gives the Fibonacci recurrence
with base cases (only ) and (either or ).
Tabulating up to :
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 5 | 8 | 13 | 21 | 34 | 55 | 89 | 144 |
Hence , which is option 4.
Exam trick: These are Fibonacci numbers shifted by one index: with . The distractors , , are exactly , , — off-by-one traps from miscounting the base case or stopping early.
#fibonacci#staircase-problem#tilings#recurrence-counting#step-climbing