login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
Cf. A359322.
Sequence in context: A221212 A218278 A101062 * A295399 A257507 A003669
KEYWORD
nonn,more
AUTHOR
Robert Israel, Dec 29 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 12 10:09 EDT 2024. Contains 372452 sequences. (Running on oeis4.)