OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
G. H. Hardy and J. E. Littlewood, Some problems of 'Partitio numerorum'; III: On the expression of a number as a sum of primes, Acta Math., Vol. 44, No. 1 (1923), pp. 1-70. See Section 5.41.
FORMULA
Hardy and Littlewood conjectured that : a(n) ~ c* sqrt(n)/Log(n) where c = Product_{p prime} (1 - (-1)^((p-1)/2)/(p-1)) = 1.3728... (A199401).
MATHEMATICA
Accumulate[Table[If[PrimeQ[k^2+1], 1, 0], {k, 80}]] (* Harvey P. Dale, Jan 08 2020 *)
PROG
(PARI) for(n=1, 200, print1(sum(i=1, n, if(isprime(i^2+1)-1, 0, 1)), ", "))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Jun 09 2002
STATUS
approved
