login
A359394
Numbers k such that the average of the squares of k consecutive primes starting with 7 is a prime.
0
3, 4, 7, 9, 24, 28, 3872, 15172, 23440, 1390100, 7031920
OFFSET
1,1
COMMENTS
a(12) > 2*10^8 if it exists.
EXAMPLE
a(3) = 7 is a term because the average of the squares of the 7 consecutive primes starting with 7 is (7^2 + 11^2 + 13^2 + 17^2 + 19^2 + 23^2 + 29^2)/7 = 337, which is prime.
MAPLE
s:= 7^2: R:= NULL: count:= 0: p:= 7:
for n from 2 while count < 11 do
p:= nextprime(p);
s:= s + p^2;
t:= s/n;
if t::integer and isprime(t) then R:= R, n; count:= count+1 fi
od:
R;
CROSSREFS
Cf. A359322.
Sequence in context: A221212 A218278 A101062 * A295399 A257507 A003669
KEYWORD
nonn,more
AUTHOR
Robert Israel, Dec 29 2022
STATUS
approved