|
|
A229661
|
|
Rounded percentage of primes less than 10^n.
|
|
0
|
|
|
0, 40, 25, 17, 12, 10, 8, 7, 6, 5, 5, 4, 4, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
Please refer to the explanations and comments given in A006879 and A006880.
|
|
LINKS
|
|
|
FORMULA
|
a(n) = pi(10^n)/10^(n-2) rounded.
|
|
EXAMPLE
|
There are 4 primes less than 10 (i.e., 2, 3, 5, 7), so a(1) = 40.
|
|
MATHEMATICA
|
a[n_] := PrimePi[10^n]/10^(n-2) // Round;
(* or *) a[n_] := A006880[[n+1]]/10^(n-2) // Round; Table[Print["10^", n, " ", a[n], "%"]; a[n], {n, 0, 25}] (* Jean-François Alcover, Sep 27 2013 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,hard,less
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|