login
A331134
a(n) = Sum_{primes p <= n} r_2(p)/4, where r_2(n) = A004018(n).
3
0, 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, 5, 5, 5, 5, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9, 9, 9, 9, 9, 9, 9, 9, 11, 11, 11, 11, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 15, 15, 15, 15, 15, 15, 15, 15, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 19, 21
OFFSET
1,5
LINKS
Yoichi Motohashi, On the distribution of prime numbers which are of the form x^2+y^2+1, Acta Arith. 16 (1969/70), 351-363. MR0288086 (44 #5284).
MATHEMATICA
Accumulate[Table[If[PrimeQ[n], SquaresR[2, n], 0], {n, 1, 100}]/4] (* Amiram Eldar, Apr 23 2024 *)
CROSSREFS
Sequence in context: A091786 A200811 A339055 * A303168 A162844 A115787
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 11 2020
STATUS
approved