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!)
A126243 a(n) = smallest prime number p which is the arithmetic mean of n-th prime < p and n-th prime > p. 5
5, 11, 11, 41, 29, 37, 53, 67, 131, 71, 97, 139, 127, 727, 193, 157, 191, 211, 191, 359, 307, 521, 349, 577, 571, 353, 307, 487, 347, 541, 571, 487, 541, 409, 947, 593, 563, 569, 787, 547, 587, 983, 587, 569, 587, 1223, 563, 557, 1213, 569, 563, 1381, 1213 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
5 is the smallest prime p = prime(n) such that p = (prime(n-1)+prime(n+1))/2 (5 = (3+7)/2).
MATHEMATICA
f[n_] := Block[{k = n + 1, p}, While[p = (Prime[k - n] + Prime[k + n])/2; p != Prime[k], k++ ]; p]; Table[f[n], {n, 58}] (* Ray Chandler, Dec 27 2006 *)
CROSSREFS
Sequence in context: A058197 A289464 A289580 * A095805 A244534 A034596
KEYWORD
nonn
AUTHOR
Artur Jasinski, Dec 21 2006
EXTENSIONS
Extended by Ray Chandler, Dec 27 2006
Figure and b-file updated by Hans Havermann, Feb 07 2007
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 8 09:56 EDT 2024. Contains 372332 sequences. (Running on oeis4.)