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!)
A364163 Least number k such that average of {prime(i) | k - n <= i <= k + n} is prime(k), or -1 if no such number exists. 0
1, 3, 22, 7, 94, 16, 20, 10, 12, 166, 727, 40, 37, 71, 702, 56, 41, 76, 33, 424, 314, 133, 71, 726, 241, 35, 618, 205, 78, 138, 1096, 1096, 111, 49, 512, 2006, 5790, 504, 2634, 1497, 199, 1344, 181, 2404, 2237, 162, 241, 470, 667, 81, 106, 2940, 209, 209, 5549 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = A000720(A082080(n)). - Michel Marcus, Jul 12 2023
EXAMPLE
a(0) = 1, because 2/1 = 2 = prime(1), and no lesser number satisfies this.
a(1) = 3, because (3+5+7)/3 = 5 = prime(3), and no lesser number satisfies this.
PROG
(PARI) a(n) = my(k=n+1); while(sum(i=k-n, k+n, prime(i)) != (2*n+1)*prime(k), k++); k; \\ Michel Marcus, Jul 12 2023
CROSSREFS
Sequence in context: A161377 A122495 A100977 * A037101 A226028 A248626
KEYWORD
sign
AUTHOR
Jean-Marc Rebert, Jul 12 2023
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 3 17:26 EDT 2024. Contains 372222 sequences. (Running on oeis4.)