The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A308540 a(n) is the least nonnegative number whose digits do not appear in order (not necessarily consecutively) in the concatenation of all previous terms. 2
 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 22, 33, 44, 55, 66, 77, 88, 99, 100, 332, 554, 776, 998, 1001, 3322, 5544, 7766, 9988, 33220, 33221, 55445, 77667, 99889, 332200, 332211, 776674, 776675, 3322008, 3322009, 7766741, 7766755, 33220088, 33220099, 77667411 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,3 COMMENTS This sequence is a variant of A048991. LINKS Rémy Sigrist, C program for A308540 EXAMPLE The first terms are necessarily the one-digit numbers: a(1) = 0, a(2) = 1, ..., a(10) = 9. The number 10 does not appear in "0123456789", hence a(11) = 10. The digits of every number from 11 to 21 appear in order in "012345678910", but this is not the case for the number 22, hence a(12) = 22. PROG (C) See Links section. CROSSREFS See A309340 for the binary variant. Cf. A048991. Sequence in context: A276633 A298482 A301801 * A179310 A114806 A239664 Adjacent sequences:  A308537 A308538 A308539 * A308541 A308542 A308543 KEYWORD nonn,base AUTHOR Rémy Sigrist, Jul 24 2019 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified September 18 23:30 EDT 2020. Contains 337175 sequences. (Running on oeis4.)