OFFSET
0,2
COMMENTS
Number of powers of 2 less than or equal to 10^n. - Peter Munn, Nov 13 2019
FORMULA
a(n) = 1 + floor(n/A007524) = 1 + floor(n/log_10(2)). - R. J. Mathar, Nov 12 2006
a(n) = 1 + A066343(n). - R. J. Mathar, Mar 02 2007
a(n) = A067497(n) for n >= 1. - Georg Fischer, Nov 02 2018
EXAMPLE
a(3)=10 because 10^3 = 1111101000_2.
10^1 = 10 = 1010_2 has 4 digits.
MAPLE
A007524 := log[10](2.0) ; for n from 0 to 40 do printf("%d, ", 1+floor(n/A007524)) ; od: # R. J. Mathar, Nov 12 2006
a:=n->nops(convert(10^n, base, 2)): seq(a(n), n=0..70); # Emeric Deutsch, Mar 26 2007
MATHEMATICA
a[n_]:=1 + Floor[n/Log10[2]]; Array[a, 60, 0] (* Stefano Spezia, Aug 31 2024 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Andrew Caldwell (spongebobpj(AT)yahoo.com), Nov 09 2006
EXTENSIONS
More terms from Emeric Deutsch, Mar 26 2007
STATUS
approved