The Fibonacci sequence starts with two 1s, and each term afterwards is the sum of its two predecessors. Which one of the ten digits is the last to appear in the units position of a number in the Fibonacci sequence?
- A)
- B)
- C)
- D)
- E)
Answer
C
Key insight
Only units digits matter: add consecutive last digits mod 10 and tick off each digit on first appearance; 6 is ticked last.
Solution
The units digit of a sum is determined by the units digits of the addends, so we can run the recursion on last digits alone: each new digit is the previous two added, keeping only the ones place.
Starting :
Record the first appearance of each digit:
| digit | 1 | 2 | 3 | 5 | 8 | 4 | 9 | 7 | 0 | 6 |
|---|---|---|---|---|---|---|---|---|---|---|
| term | 1 | 3 | 4 | 5 | 6 | 9 | 11 | 14 | 15 | 21 |
By the th term, nine digits have shown up and only is missing. It finally appears as the st term (), so is the last digit to appear.
The answer is .
Why this works
Reducing mod commutes with addition, so the sequence of last digits obeys the same recursion as the sequence itself and you never need the actual Fibonacci numbers, which quickly get large. A written checklist of which digits have appeared turns a vague "which comes last" question into a mechanical scan. Tagging note: the Fibonacci wording is surface; the work is arithmetic mod .
Alternative approach
Since the answer is one of the five listed digits, you only need to watch for ; the moment the last of those five is written, you are done. The list above shows trailing the other four.
The trap
Stopping the list as soon as a tempting digit such as 0 or 7 appears, without confirming that every other digit has already occurred.
Common mistakes
- Stopping the list as soon as a tempting digit such as 0 or 7 appears, without confirming that every other digit has already occurred.
- An addition slip early in the list corrupts everything after it; cross-check the first terms against the known values .
Techniques
Organized listing / direct enumeration