OFFSET
1,2
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
extend:= proc(x) local t;
t:= x mod 6;
if t = 0 then 6*x+1
elif t = 5 then 6*x+4
else 6*x+t-1, 6*x+t+1
fi
end proc:
L:= [1, 2, 3, 4, 5]: R:= op(L):
while nops([R])<100 do
L:= map(extend, L);
R:= R, op(L);
od:
R; # Robert Israel, Dec 21 2025
MATHEMATICA
Join[Range[5], Select[Range[2000], Union[Abs[Differences[IntegerDigits[#, 6]]]]=={1}&]] (* Harvey P. Dale, Dec 28 2011 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved
