OFFSET
1,8
COMMENTS
Number of pairs i, j such that A014574(i) + A014574(j) = A014574(n) where 1 <= i <= j < n. - David A. Corneth, Aug 05 2018
EXAMPLE
a(8)=2 because the 8th isolated composite number is 72 = 60 + 12 and 42 + 30 with (12,30,42,60) all isolated composite numbers.
PROG
(PARI) lista(nn) = {my(vc = select(x->(isprime(x-1) && isprime(x+1)), [1..nn])); for (n=1, #vc, nb = 0; for (j=1, n, for (k=j+1, n, if (vc[j]+vc[k] == vc[n], nb++)); ); print1(nb, ", "); ); } \\ Michel Marcus, Jul 05 2018
(PARI) first(n) = {my(isolated = List(), isomap = Map, res = vector(n), k, q = 3); forprime(p = 5, , if(p - q == 2, listput(isolated, q+1); mapput(isomap, q+1, #isolated); if(#isolated == n, break)); q = p); for(i = 1, #isolated, for(j = 1, i - 1, diff = isolated[i] - isolated[j]; if(diff < isolated[j], if( mapisdefined(isomap, diff, &k), res[i]++), next(1)))); res} \\ David A. Corneth, Aug 05 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Pedro Caceres, Jun 10 2018
EXTENSIONS
Name changed, extended data by David A. Corneth, Aug 05 2018
STATUS
approved