login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

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
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
Eric Angelini, LastDigit
E. Angelini, LastDigit [Cached copy, with permission]
CROSSREFS
Sequence in context: A337857 A044895 A370400 * A139079 A360443 A209932
KEYWORD
base,easy,nonn
AUTHOR
Eric Angelini, Feb 16 2009
EXTENSIONS
More terms from Sean A. Irvine, Apr 09 2013
STATUS
approved