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!)
A243909 Least number k > 0 such that 2^k contains exactly n different digits. 0
1, 4, 7, 10, 14, 21, 20, 37, 29, 68 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
2^7 = 128 is the first power of 2 with 3 different digits. Thus a(3) = 7.
MATHEMATICA
dd[n_]:=Count[DigitCount[2^n], _?(#>0&)]; Table[SelectFirst[Table[{n, dd[n]}, {n, 70}], #[[2]] == k&], {k, 10}][[All, 1]] (* Harvey P. Dale, Jan 22 2023 *)
PROG
(PARI) a(n)=for(k=1, 10^3, st=2^k; if(#digits(st)>=n, c=0; for(i=0, 9, for(j=1, #digits(st), if(digits(st)[j]==i, c++; break))); if(c==n, return(k))))
n=1; while(n<11, print1(a(n), ", "); n++)
CROSSREFS
Sequence in context: A310696 A310697 A133497 * A187334 A310698 A310699
KEYWORD
nonn,base,full,fini
AUTHOR
Derek Orr, Jun 14 2014
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 11:06 EDT 2024. Contains 371967 sequences. (Running on oeis4.)