GIVEN IS THE SEQUENCE 1, 1, 1, 3, 5, 9, 17, 31, … , WHERE THE N T...

13. Given is the sequence 1, 1, 1, 3, 5, 9, 17, 31, … , where the n th term after the 3 rd

term is the sum of three previous terms.

For example, the 4 th term is 1 1 1 3 + + = and the 5 th term is 1 1 3 + + = 5 .

What is the remainder when the 2018 th term is divided by 8?