Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

number theory intermediate

Problem

The Fibonacci sequence is the sequence 1, 1, 2, 3, 5, where the first and second terms are 1 and each term after that is the sum of the previous two terms. What is the remainder when the term of the sequence is divided by 8?
Solution
We can look at the terms of the Fibonacci sequence modulo 8. Since and are both 1, the sequence begins repeating at the 13th term, so it repeats every 12 terms. Since the remainder is 4 when we divide 100 by 12, we know . Therefore the remainder when is divided by 8 is .
Final answer
3