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.

A076770 Even numbers representable as the sum of two odd composites.

This page as a plain text file.
%I A076770 #10 Mar 31 2019 04:02:06
%S A076770 18,24,30,34,36,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,
%T A076770 76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,
%U A076770 116,118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148
%N A076770 Even numbers representable as the sum of two odd composites.
%C A076770 If n is even and n > 38, at least one of (n-15), (n-25), (n-35) is an odd number divisible by 3 and greater than 3. So every even number > 38 is a term. [Jack Brennen]
%e A076770 40 can be represented as 15+25 where 15 and 25 are both composite numbers, so 40 is a term.
%o A076770 (PARI) v=vector(5000); vc=1; forstep (n=9,300,2, if (isprime(n),continue, forstep (j=9,300,2,if (isprime(j),continue,x=n+j; fl=true; for (i=1,vc,if (v[i]==x,fl=false; break)); if (fl==true,v[vc]=x; vc++))))); print(vc); v=vecsort(vecextract(v,concat("1..",vc-1)))
%Y A076770 Cf. A118081.
%K A076770 nonn
%O A076770 1,1
%A A076770 _Jon Perry_, Nov 14 2002
%E A076770 Corrected by _Don Reble_, Nov 20 2006