OFFSET
1,2
COMMENTS
a(1) = 1, and for n > 1 a(n) is the smallest integer not yet present in the sequence such that the digital sum of a(n-1) is not a substring of the decimal digits of a(n).
LINKS
Lars Blomberg, Table of n, a(n) for n = 1..10000
EXAMPLE
The digital sum of 1 is 1, so a(2) = 2 is the first unused number not containing a "1"; the digital sum of 2 is 2, so a(3) = 3 is the first unused number not containing a "2"; ...; the digital sum of 10 is 1, so a(11) = 20 is the first unused number not containing a "2" (2 is already used); etc.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric Angelini and Lars Blomberg, Apr 10 2018
STATUS
approved