Solution:

Since d1 is not 0 and 5, d2 is equal to 2, 4, 6, or 8. Then the sequence d2, d3, ... is periodic with period 4. Therefore, for each n>1

    an+4 = an +2+4+6+8

and an+4p =an + 20p for any natural number p. The sequence {an} includes a term divisible by 4, say an1 =4k. But then an1+4p = 4k +20p = 4(k+5p). Since 2m (mod5) m=0, 1, 2, ... is a periodic sequence 1, 2, 4, 3, 1, 2, 4, 3, ..., infinitely many terms 2m are equal to k mod(5). Therefore, k+5p contains infinitely many terms of the form 2m.