

A156819


Last digit d of a(n) is present in a(n+1+d); a(1)=0; a(n+1) is always the smallest available integer not already in the sequence and not leading to a contradiction.


3



0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 101, 1, 11, 12, 13, 2, 21, 3, 123, 4, 5, 23, 31, 6, 14, 32, 15, 7, 22, 24, 16, 25, 35, 8, 34, 17, 9, 56, 45, 41, 18, 19, 28, 27, 65, 26, 29, 33, 36, 38, 51, 3789, 61, 37, 71, 46, 91, 39, 81, 42, 102, 79
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,2


COMMENTS

The sequence arising when a(n)<a(n+1) is A156818. Thanks to Hans Havermann and Paolo Lava for their remarks.


LINKS

E. Angelini, LastDigit [Cached copy, with permission]


CROSSREFS



KEYWORD

base,easy,nonn


AUTHOR



EXTENSIONS



STATUS

approved



