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!)
A234345 Smallest q such that n <= q < 2n with p, q both prime, p+q = 2n, and p <= q. 5

%I #25 Feb 17 2018 10:57:46

%S 2,3,5,5,7,7,11,11,13,11,13,13,17,17,19,17,19,19,23,23,31,23,29,31,29,

%T 31,37,29,31,31,41,37,37,41,41,37,47,41,43,41,43,43,47,47,61,47,53,61,

%U 53,59,61,53,61,67,59,61,73,59,61,61,71,67,67,71,71,67,83,71,73,71,73,73

%N Smallest q such that n <= q < 2n with p, q both prime, p+q = 2n, and p <= q.

%C Also, the larger part in the Goldbach partition of 2n with the smallest difference between its prime parts.

%H Vincenzo Librandi, <a href="/A234345/b234345.txt">Table of n, a(n) for n = 2..1000</a>

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/GoldbachPartition.html">Goldbach Partition</a>

%H Wikipedia, <a href="http://en.wikipedia.org/wiki/Goldbach%27s_conjecture">Goldbach's conjecture</a>

%H <a href="/index/Go#Goldbach">Index entries for sequences related to Goldbach conjecture</a>

%H <a href="/index/Par#part">Index entries for sequences related to partitions</a>

%F a(n) = 2n - A112823(n).

%e a(9) = 11; the Goldbach partitions of 2(9) = 18 are (13,5) and (11,7). The partition with smaller difference between the primes is (11,7) (difference 4) and the larger part of this partition is 11.

%t f[n_] := Block[{p = n/2}, While[! PrimeQ[p] || ! PrimeQ[n - p], p--];

%t n - p]; Table[f[n], {n, 4, 146, 2}]

%o (PARI) a(n) = {my(q = nextprime(n)); while (!isprime(2*n-q), q = nextprime(q+1)); q;} \\ _Michel Marcus_, Oct 22 2016

%Y Cf. A112823.

%K nonn,easy

%O 2,1

%A _Wesley Ivan Hurt_, Dec 23 2013

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 23 11:22 EDT 2024. Contains 371913 sequences. (Running on oeis4.)