login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A180418
a(n) = ( A000111(p) -(-1)^((p-1)/2) )/p, where p = prime(n).
3
1, 3, 39, 32163, 1720635, 12345020175, 1530993953307, 44148864630732711, 797213247855503373843915, 281095572810489332134542303, 26242778669866462496740532647355475
OFFSET
2,2
LINKS
FORMULA
a(n) = ( A000111(A000040(n)) -A070750(n) )/A000040(n). - R. J. Mathar, Sep 19 2010
MATHEMATICA
t = Range[0, 60]! CoefficientList[Series[Sec@x + Tan@x, {x, 0, 60}], x]; f[n_] := (Rest[t][[Prime@n]] - (-1)^((Prime@n - 1)/2))/Prime@n; Array[f, 11, 2] (* Robert G. Wilson v, Sep 04 2010 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Shevelev, Sep 03 2010
EXTENSIONS
Extended by R. J. Mathar, Sep 19 2010
a(8) onwards from Robert G. Wilson v, Sep 04 2010
STATUS
approved