login
A108955
Floor(Li(2n) - Li(n)).
0
1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 17, 17, 17
OFFSET
2,2
FORMULA
Li(x) = Int(t=2, x, dt/log(t)) = Logarithmic Integral.
MATHEMATICA
Table[Floor[LogIntegral[2n]-LogIntegral[n]], {n, 2, 90}] (* Harvey P. Dale, Jun 21 2017 *)
PROG
(PARI) L(n) = for(x=2, n, y=Li(2*x)-Li(x); print1(floor(y)", ")) Li(x) = \ Logarithmic integral { -eint1(log(1/x)) }
CROSSREFS
Sequence in context: A232746 A052146 A097882 * A108956 A289133 A367194
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Jul 22 2005
STATUS
approved