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!)
A352040 a(n) is the least number k such that 2^k contains each of the 10 digits at least n times. 2
68, 88, 119, 200, 209, 246, 291, 318, 396, 398, 443, 443, 495, 586, 592, 622, 646, 707, 758, 758, 813, 866, 875, 903, 923, 1001, 1022, 1022, 1105, 1111, 1111, 1231, 1243, 1245, 1327, 1342, 1419, 1453, 1453, 1454, 1534, 1536, 1537, 1626, 1676, 1699, 1699, 1763 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(1)-a(8) were given in the solution to Problem 410 (Crux Mathematicorum, 1979), but a(2) = 170 is wrong.
a(1) was calculated by Rudolph Ondrejka in 1976.
LINKS
James Gary Propp, Problem 410, Crux Mathematicorum, Vol. 5, No. 1 (1979), p. 17; Solution to Problem 410, ibid., Vol. 5, No. 10 (1979), pp. 296-299.
FORMULA
Conjecture: a(n) ~ c*n, where c = 10*log_2(10) = 33.21928... .
a(n) >= (10n-1)*log_2(10), i.e., c = 10*log_2(10) is a lower bound on the asymptotic growth rate. - Chai Wah Wu, Apr 16 2022
EXAMPLE
a(1) = 68 since 2^68 = 295147905179352825856 is the least power of 2 that contains all the 10 digits at least once.
MAPLE
a:= proc(n) option remember; local k; for k from a(n-1)
while min((p-> seq(coeff(p, x, j), j=0..9))(add(
x^i, i=convert(2^k, base, 10))))<n do od; k
end: a(0):=0:
seq(a(n), n=1..50); # Alois P. Heinz, Apr 22 2022
MATHEMATICA
s = Table[Min[DigitCount[2^n, 10, Range[0, 9]]], {n, 1, 2500}]; Table[FirstPosition[s, _?(# >= n &)], {n, 1, Max[s]}] // Flatten
PROG
(Python)
from sympy import ceiling, log
def A352040(n):
k = 10*n-1+int(ceiling((10*n-1)*log(5, 2)))
s = str(c := 2**k)
while any(s.count(d) < n for d in '0123456789'):
c *= 2
k += 1
s = str(c)
return k # Chai Wah Wu, Apr 16 2022
CROSSREFS
Sequence in context: A341179 A261316 A045268 * A217776 A039540 A235284
KEYWORD
nonn,base
AUTHOR
Amiram Eldar, Apr 16 2022
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 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)