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!)
 A038378 Integers which have more distinct digits than any smaller number. 5
 0, 10, 102, 1023, 10234, 102345, 1023456, 10234567, 102345678, 1023456789 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS Or: Smallest number with exactly n distinct digits. - M. F. Hasler, May 04 2017 LINKS S. Colton, Refactorable Numbers - A Machine Invention, J. Integer Sequences, Vol. 2, 1999, #2. MATHEMATICA Prepend[NestList[FromDigits[Append[IntegerDigits[#], Last[Union[IntegerDigits[#]]]+1]]&, 10, 8], 0] (* Ivan N. Ianakiev, May 10 2015 *) Join[{0}, Table[FromDigits[PadRight[{1, 0}, n, {1, 0, 2, 3, 4, 5, 6, 7, 8, 9}]], {n, 2, 10}]] (* Harvey P. Dale, Sep 27 2016 *) PROG (PARI) A038378(n)=sum(i=1, n--, 10^(n-i)*if(i>1, i, 10)) \\ M. F. Hasler, May 04 2017 CROSSREFS Cf. A007809, A043537, A086069. Sequence in context: A336401 A037503 A037680 * A158242 A147636 A191014 Adjacent sequences:  A038375 A038376 A038377 * A038379 A038380 A038381 KEYWORD nonn,fini,full,base,nice AUTHOR EXTENSIONS Offset fixed by Reinhard Zumkeller, Aug 25 2009 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 August 2 06:52 EDT 2021. Contains 346411 sequences. (Running on oeis4.)