login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A038378 Integers which have more distinct digits than any smaller number. 6
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
Sequence in context: A336401 A037503 A037680 * A158242 A147636 A191014
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 10:01 EDT 2024. Contains 371967 sequences. (Running on oeis4.)