The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A277583 Goldbach's problem extended to squares of prime gaps (>=2): smallest integer >= ((A078587(n) - A078496(n))^2)/n for n >= 4. 1
 1, 4, 1, 10, 5, 2, 4, 14, 1, 12, 3, 2, 3, 9, 1, 31, 2, 1, 15, 7, 5, 6, 2, 3, 12, 20, 1, 19, 11, 2, 2, 5, 3, 4, 9, 1, 1, 15, 1, 54, 1, 1, 20, 4, 3, 12, 1, 6, 7, 3, 4, 11, 1, 2, 16, 10, 1, 22, 6, 2, 1, 3, 2, 3, 14, 1, 1, 9, 1, 2, 13, 1, 1, 2, 2, 17, 5, 1, 11, 28, 2, 7, 1, 10, 4, 15 (list; graph; refs; listen; history; text; internal format)
 OFFSET 4,2 COMMENTS Where A078587(n) + A078496(n) = 2n and A078587(n) < A078496(n). LINKS EXAMPLE a(5) = 4 because ((A078587(5) - A078496(5))^2)/5 = ((3 - 7)^2)/5 < 4, where 3 (prime) = 7 (prime) = 2*5; a(6) = 1 because ((A078587*6) - A078496(6))^2)/6 = ((5 - 7)^2)/6 < 1, where 5 (prime) + 7 (prime) = 2*6; a(7) = 10 because ((A078587(7) - A078496(7))^2)/7 = ((3 - 11)^2)/7 < 10, where 3 (prime) + 11 (prime) = 2*7. MATHEMATICA Table[k = 1; While[k < ((Last@ # - First@ #)^2)/n, k++] &@ Block[{p = n + 1, q}, q = 2 n - p; While[q > 0 && Nand[PrimeQ@ p, PrimeQ@ q], p++; q--]; {p, q}]; k, {n, 4, 89}] (* or *) Table[Ceiling[4 (n - #)^2/n] &@ Block[{p = n + 1, q}, q = 2 n - p; While[q > 0 && Nand[PrimeQ@ p, PrimeQ@ q], p++; q--]; p], {n, 4, 89}] (* Michael De Vlieger, Oct 26 2016, after T. D. Noe at A078587 and Michel Marcus PARI *) PROG (PARI) maxp(n) = {my(p = precprime(n-1)); while(!isprime(2*n-p), p = precprime(p-1)); p; } a(n) = ceil(4*(n - maxp(n))^2/n); \\ Michel Marcus, Oct 22 2016 CROSSREFS Cf. A002375, A078496, A078587, A277581 (Goldbach's problem extended to squares of prime gaps >= 0). Sequence in context: A185945 A186368 A185676 * A213765 A182971 A062145 Adjacent sequences:  A277580 A277581 A277582 * A277584 A277585 A277586 KEYWORD nonn AUTHOR Juri-Stepan Gerasimov, Oct 22 2016 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified February 25 08:21 EST 2020. Contains 332221 sequences. (Running on oeis4.)