login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A180457
Central term of nine successive primes whose average is a prime.
1
491, 617, 757, 1489, 1787, 2141, 2143, 2269, 3529, 3571, 4723, 5563, 6337, 6451, 6659, 6961, 6991, 7741, 7873, 7907, 8821, 10141, 10267, 10657, 12911, 13399, 14629, 15299, 16189, 16451, 16487, 17027, 18223, 18701, 19801, 19843, 19853, 19937
OFFSET
1,1
COMMENTS
The average value is not always the central term (see A096701).
LINKS
FORMULA
a(n)=[p(n-4)+p(n-3)+p(n-2)+p(n-1)+p(n)+p(n+1)+p(n+2)+p(n+3)+p(n+4)]/9.
EXAMPLE
a(5)=1787 since (1753+1759+1777+1783+1787+1789+1801+1811+1823)/9=16083/9=1787 a prime.
MAPLE
Primes:= select(isprime, [seq(t, t=1..10^5, 2)]):
PSums:= ListTools[PartialSums](Primes):
Avgs:= [seq((PSums[i+9]-PSums[i])/9, i=1..nops(PSums)-9)]:
Pos:= select(t -> Avgs[t]::integer and isprime(Avgs[t]), [$1..nops(Avgs)]):
seq(Primes[Pos[i]+5], i=1..nops(Pos)); # Robert Israel, Apr 26 2016
MATHEMATICA
Select[Partition[Prime[Range[2500]], 9, 1], PrimeQ[Mean[#]]&][[;; , 5]] (* Harvey P. Dale, Nov 20 2024 *)
CROSSREFS
Sequence in context: A051115 A273809 A060975 * A271664 A082079 A260925
KEYWORD
nonn
AUTHOR
Carmine Suriano, Sep 06 2010
STATUS
approved