Solution:
a. Yes, very soon, in fact the next four terms (from 7 to 10th) are 2,0,0,7.
b. We will prove that 1,8,4,0 will be a subsequence again. Assume the contrary. Since there are only finitely many combinations of four digits (precisely 104), and the sequence is infinite, some combination of four digits (say (a,b,c,d)) has to reappear. Assume that (xn,xn+1,xn+2,xn+3)=(a,b,c,d) is the first occurrence of (a,b,c,d) and that (xm,xm+1,xm+2,xm+3)=(a,b,c,d) is the second. Clearly m>n. However, xn−1 and xm−1 are uniquely determined and they have to be the same numbers. Thus xn−1=xm−1, xn−2=xm−2, and so on. This means that x1=xm−n+1, x2=xm−n+2, x3=xm−n+3, and x4=xm−n+4, which is a contradiction.