OFFSET
1,1
COMMENTS
Number of positive integers <= 10^n that are divisible by no prime exceeding 2.
Maximum number of prime divisors of positive integers <= 10^n counted with multiplicity. - Martin Renner, Apr 04 2014
You wish to represent the rational number n/d in decimal notation, where n is an integer, d is a nonzero integer, and precision(d) represents the number of decimal digits in d. The decimal notation representation of n/d will either terminate or repeat with a repetend. If the decimal notation representation terminates then this sequence defines the maximum number of decimal digits to the right of the decimal point (after truncating trailing zeros) for a given precision of d ... floor(precision(d) * log_2(10)). - Michael T Howard, Jul 17 2017
Beatty complement of A066344. - Jianing Song, Jan 27 2019
LINKS
Harry J. Smith, Table of n, a(n) for n = 1..1000
Eric Weisstein's World of Mathematics, Beatty Sequence
FORMULA
a(n) = floor(n*log_2(10)).
MAPLE
seq(floor(log[2](10)*n), n=1..60); # Martin Renner, Apr 04 2014
MATHEMATICA
Table[ Floor[ n*Log[2, 10]], {n, 60}] (* Robert G. Wilson v, May 27 2005 *)
PROG
(PARI) { l=log(10)/log(2); for (n=1, 1000, a=floor(n*l); write("b066343.txt", n, " ", a) ) } \\ Harry J. Smith, Feb 11 2010
(Python)
def A066343(n): return (5**n).bit_length()+n-1 # Chai Wah Wu, Sep 08 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Vladeta Jovovic, Dec 15 2001
STATUS
approved