OFFSET
0,3
COMMENTS
Arises in studying the Goldbach conjecture.
The last negative term appears to be a(485). - T. D. Noe, Dec 05 2006
REFERENCES
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
T. D. Noe, Table of n, a(n) for n = 0..1000
P. A. MacMahon, Properties of prime numbers deduced from the calculus of symmetric functions, Proc. London Math. Soc., 23 (1923), 290-316. = Coll. Papers, II, pp. 354-380. [The sequence G_n]
FORMULA
G.f.: 1/(1+Sum_{k>0} (-x)^prime(k))^2.
PROG
(Haskell)
a002122 n = a002122_list !! n
a002122_list = uncurry conv $ splitAt 1 a002121_list where
conv xs (z:zs) = sum (zipWith (*) xs $ reverse xs) : conv (z:xs) zs
-- Reinhard Zumkeller, Mar 21 2014
CROSSREFS
KEYWORD
sign
AUTHOR
EXTENSIONS
Edited by Vladeta Jovovic, Mar 29 2003
Entry revised by N. J. A. Sloane, Dec 04 2006
STATUS
approved