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.

A076608 Number of nonprimes k < n such that also n-k is not a prime.

This page as a plain text file.
%I A076608 #10 Sep 10 2021 07:27:30
%S A076608 0,1,0,0,2,0,2,1,2,4,2,3,4,4,4,7,4,7,6,7,6,10,6,11,8,12,8,13,10,15,12,
%T A076608 13,12,18,12,21,14,16,16,21,16,23,18,21,18,24,18,27,20,27,20,27,22,31,
%U A076608 24,29,24,32,26,37,28,30,28,37,28,41,30,33,32,41,32,43,34,40,34,43,34
%N A076608 Number of nonprimes k < n such that also n-k is not a prime.
%C A076608 a(n) is odd iff n is even and n/2 is not prime.
%C A076608 Convolution of A005171 with itself. - _R. J. Mathar_, Sep 10 2021
%H A076608 Harvey P. Dale, <a href="/A076608/b076608.txt">Table of n, a(n) for n = 1..1000</a>
%e A076608 5=1+4=2+3=3+2=4+1, hence a(5)=2;
%e A076608 6=1+5=2+4=3+3=4+2=5+1, hence a(6)=0.
%t A076608 Table[With[{nn=m},Total[Table[If[NoneTrue[{n,nn-n},PrimeQ],1,0],{n,nn-1}]]],{m,80}] (* Requires Mathematica version 10 or later *) (* _Harvey P. Dale_, Mar 15 2020 *)
%Y A076608 Cf. A073610, A005171.
%K A076608 nonn
%O A076608 1,5
%A A076608 _Reinhard Zumkeller_, Oct 21 2002