The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A360656 Least k such that the decimal representation of 2^k contains all possible n-digit strings. 1
68, 975, 16963, 239697, 2994863 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
2^68 = 295147905179352825856 is the least power of 2 containing all ten decimal digits, so a(1) = 68 = A171744(1).
2^975 is the least power of 2 containing all 100 two-digit strings, so a(2) = 975.
PROG
(Python)
def a(n, starte=0):
e, p2, t = starte, 2**starte, 10**n
while True:
s2, ss = str(p2), set()
for i in range(len(s2)-n+1):
ss.add(s2[i:i+n])
if len(ss) == t:
return e
e += 1
p2 *= 2
print([a(n) for n in range(1, 4)]) # Michael S. Branicky, Feb 22 2023
CROSSREFS
Sequence in context: A250144 A250338 A223374 * A254645 A281049 A264316
KEYWORD
nonn,base,more
AUTHOR
Hans Havermann, Feb 15 2023
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 May 21 16:41 EDT 2024. Contains 372738 sequences. (Running on oeis4.)