OFFSET
1,2
COMMENTS
Edwards, p. 22, calls this J(n).
REFERENCES
J. C. Lagarias and A. M. Odlyzko, Computing pi(x): an analytic method, J. Algorithms, 8 (2087), 173-191.
H. M. Edwards, Riemann's Zeta Function, Academic Press, NY, 1974.
LINKS
T. D. Noe, Table of n, a(n) for n=1..10000
EXAMPLE
0, 1/2, 3/2, 9/4, 3, 7/2, 4, 14/3, 61/12, 16/3, 35/6, 19/3,...
MATHEMATICA
f[n_] := Module[{i, m, p, t1, t2}, t1 = 0; For[i = 1, i <= n, i++, p = Prime[i]; If[p > n, Break[]]; For[m = 1, m <= n, m++, If[p^m > n, Break[]]; If[n == p^m, t2 = 1/(2m), t2 = 1/m]; t1 = t1 + t2]]; t1];
Table[f[n] // Denominator, {n, 1, 100}] (* Jean-François Alcover, Apr 02 2023, after Maple code in A099319 *)
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
N. J. A. Sloane, Nov 17 2004
STATUS
approved