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!)
A279729 Sum of all the parts of the Goldbach partitions (p,q) of 2n such that all primes from p to q (inclusive) appear as a part in some Goldbach partition of p+q = 2n. 5
0, 0, 6, 8, 20, 12, 14, 0, 36, 0, 22, 72, 26, 0, 90, 0, 34, 72, 38, 0, 42, 0, 46, 0, 0, 52, 0, 0, 58, 300, 62, 0, 0, 68, 0, 0, 74, 0, 78, 0, 82, 252, 86, 0, 90, 0, 94, 0, 0, 100, 0, 0, 212, 0, 0, 112, 0, 0, 118, 240, 122, 0, 0, 128, 0, 0, 134, 0, 138, 0, 142, 144, 146, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
Eric Weisstein's World of Mathematics, Goldbach Partition
FORMULA
a(n) = 2n * A278700(n).
a(n) = A279727(n) + A279728(n).
MAPLE
with(numtheory): A279729:=n->2*n*add((pi(i)-pi(i-1)) * (pi(2*n-i)-pi(2*n-i-1)) * (product(1-abs((pi(k)-pi(k-1))-(pi(2*n-k)-pi(2*n-k-1))), k=i..n)), i=3..n): seq(A279729(n), n=1..100);
MATHEMATICA
f[n_, x_: 0] := Sum[(If[x == 0, i, 2 n - i] Boole[PrimeQ@ i] Boole[PrimeQ[2 n - i]]) Product[1 - Abs[Boole[PrimeQ@ k] - Boole[PrimeQ[2 n - k]]], {k, i, n}], {i, 3, n}]; Table[f@ n + f[n, 1], {n, 100}] (* Michael De Vlieger, Dec 18 2016 *)
CROSSREFS
Sequence in context: A349225 A199884 A028331 * A357946 A309653 A113806
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Dec 17 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)