login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Number of q in the range 0<=q<=n for which k(n)+k(q) is prime, with k(n) := n*(n+1)^2/2.
0

%I #12 Mar 31 2012 10:33:09

%S 1,1,0,1,0,2,1,0,0,3,0,1,2,0,0,2,1,3,1,0,0,9,1,0,2,2,0,2,1,2,4,0,0,6,

%T 1,1,5,4,1,3,2,3,2,0,0,15,0,2,2,3,3,7,1,4,2,1,3,17,2,1,6,5,1,4,2,8,3,

%U 0,0,7,2,3,9,3,1,2,0,9,1,0,2,21,1,4,6,9,2,5,2,4,6,3,3,16,2,2,4,5,1,2

%N Number of q in the range 0<=q<=n for which k(n)+k(q) is prime, with k(n) := n*(n+1)^2/2.

%e a(6)=2 because 147+2 and 147+50 are primes;

%e a(10)=3 because 605+2, 605+224 and 605+324 are primes.

%Y Cf. A006002, A130504.

%K nonn

%O 1,6

%A _Gerasimov Sergey_, Mar 27 2012

%E Corrected by R. J. Mathar, Mar 30 2012