cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A279315 Count the primes appearing in each interval [p,q] where (p,q) is a Goldbach partition of 2n such that all primes from p to q (inclusive) appear as a part in some Goldbach partition of p+q = 2n, and then add the results.

This page as a plain text file.
%I A279315 #47 Mar 08 2025 04:05:21
%S A279315 0,0,1,2,4,2,1,0,6,0,1,12,1,0,12,0,1,6,1,0,2,0,1,0,0,2,0,0,1,30,1,0,0,
%T A279315 2,0,0,1,0,2,0,1,12,1,0,2,0,1,0,0,2,0,0,4,0,0,2,0,0,1,6,1,0,0,2,0,0,1,
%U A279315 0,2,0,1,2,1,0,0,2,0,0,1,0,6,0,1,0,0,2,0
%N A279315 Count the primes appearing in each interval [p,q] where (p,q) is a Goldbach partition of 2n such that all primes from p to q (inclusive) appear as a part in some Goldbach partition of p+q = 2n, and then add the results.
%H A279315 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/GoldbachPartition.html">Goldbach Partition</a>
%H A279315 Wikipedia, <a href="http://en.wikipedia.org/wiki/Goldbach%27s_conjecture">Goldbach's conjecture</a>
%H A279315 <a href="/index/Go#Goldbach">Index entries for sequences related to Goldbach conjecture</a>
%H A279315 <a href="/index/Par#part">Index entries for sequences related to partitions</a>
%F A279315 a(n) = Sum_{i=3..n} c(i) * c(2*n-i) * (pi(2*n-i)-pi(i-1)) * (Product_{k=i..n} (1-abs(c(k)-c(2*n-k)))), where pi is the prime counting function (A000720), and c is the prime characteristic (A010051).
%F A279315 From _Wesley Ivan Hurt_, Dec 17 2016: (Start)
%F A279315 a(n) = A010051(n)*A278700(n)^2+(1-A010051(n))*A278700(n)*(A278700(n)+1).
%F A279315 a(n) <= A279536(n). (End)
%p A279315 with(numtheory): A279315:=n->add( (pi(i)-pi(i-1)) * (pi(2*n-i)-pi(2*n-i-1)) * (pi(2*n-i)-pi(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(A279315(n), n=1..100);
%t A279315 f[n_] := Sum[ Boole[PrimeQ[i]] Boole[PrimeQ[ 2n -i]] (PrimePi[ 2n -i] - PrimePi[i -1]) Product[(1 - Abs[Boole[PrimeQ[k]] - Boole[PrimeQ[ 2n -k]]]), {k, i, n}], {i, 3, n}]; Array[f, 80] (* _Robert G. Wilson v_, Dec 15 2016 *)
%Y A279315 Cf. A000720, A010051, A278700, A279481, A279536.
%K A279315 nonn,easy
%O A279315 1,4
%A A279315 _Wesley Ivan Hurt_, Dec 13 2016