OFFSET
1,2
COMMENTS
If we restrict the maximum number of digits in the number to n, n >= 1, the sequence is finite and the last term is 9797...97 if n is even or 9797..9 if n is odd. - Enrique Navarrete, Dec 01 2017
LINKS
Iain Fox, Table of n, a(n) for n = 1..947
PROG
(PARI) is(n) = for(i=2, #n=digits(n), if(abs(n[i]-n[i-1]) != 2, return(0))); 1 \\ Iain Fox, Dec 01 2017
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved