login
A107860
The sequence described in A107859 for "seeds" a(1)=1, a(2)=0.
1
1, 0, 10, 11, 12, 13, 20, 30, 14, 15, 2, 16, 21, 3, 23, 17, 31, 32, 4, 33, 18, 5, 24, 19, 22, 41, 51, 25, 6, 34, 26, 27, 61, 28, 71, 40, 29, 7, 35, 36, 42, 37, 8, 47, 50, 52, 38, 43, 44, 81, 39, 91, 53, 100, 62, 45, 46, 54, 101, 55, 102, 56, 103, 60, 63, 48, 72, 57, 82, 49, 92
OFFSET
0,3
MATHEMATICA
id[t_]:=IntegerDigits[t]; bb={1, 0}; cc={1, 0}; Do[Do[d=Abs[cc[[k]]-cc[[k+1]]]; If[MemberQ[id[m], d]&&!MemberQ[bb, m], bb=Append[bb, m]; cc=Flatten[{cc, id[m]}]; Break[]], {m, 1, 1000}], {k, 1, 100}]; bb
CROSSREFS
Cf. A107859.
Sequence in context: A308105 A066309 A244510 * A244156 A058948 A108584
KEYWORD
nonn
AUTHOR
Zak Seidov & Eric Angelini, May 25 2005
STATUS
approved