|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
a(12) > 2*10^8 if it exists.
|
|
LINKS
|
|
|
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
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|