login
A338273
a(n) is the sum of A338270(n) and the average of the primes immediately before and after A338270(n).
3
47, 73, 157, 167, 179, 263, 467, 719, 733, 757, 877, 887, 1021, 1327, 1367, 1453, 1613, 1997, 2027, 2477, 2593, 2633, 2767, 2879, 3001, 3083, 3119, 3203, 3307, 3583, 3623, 3733, 3779, 4021, 4157, 4217, 4273, 4327, 4561, 4703, 4787, 4801, 4933, 5087, 5153, 5387, 5399, 5573, 5701, 5879, 6343, 6359
OFFSET
1,1
COMMENTS
All terms are prime.
LINKS
FORMULA
a(n) = A338270(n) + (A151799(A338270(n))+A151800(A338270(n)))/2.
EXAMPLE
A338270(3) = 79 with previous and next primes 73 and 83, so a(3) = 79 + (83+83)/2 = 157.
MAPLE
q:= 3: r:= 5:
count:= 0: R:= NULL:
while count < 100 do
p:= q; q:= r; r:= nextprime(r);
if isprime((p+2*q+r)/2) then count:=count+1; R:= R, p + (q+r)/2;
fi
od:
R;
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Oct 19 2020
STATUS
approved