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!)
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 (list; graph; refs; listen; history; text; internal format)
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
Sequence in context: A369957 A052231 A092178 * A165335 A039425 A043248
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Oct 19 2020
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 April 24 08:28 EDT 2024. Contains 371927 sequences. (Running on oeis4.)