OFFSET
1,1
COMMENTS
The unique square and even term of the sequence is a(1) = 4.
For n = 1, the sequence of semiprimes having a unique decomposition as the sum of two primes begins with 4, 6, 9, 10, 14, 15, 22, 26, 34, 35, 38, 46, 58, 62, ... containing the even semiprimes (A100484).
We observe a majority of terms where a(n) == 5 (mod 10).
LINKS
Michel Marcus, Table of n, a(n) for n = 1..501
EXAMPLE
a(11) = 695 because 695 = 5*139 and the sum 5 + 139 = 144 = 5+139 = 7+137 = 13+131 = 17+127 = 31+113 = 37+107 = 41+103 = 43+101 = 47+97 = 61+83 = 71+73. There are exactly 11 decompositions of 144 into an unordered sum of two primes.
MAPLE
with(numtheory):
for n from 1 to 50 do:
ii:=0:
for k from 2 to 10^8 while(ii=0) do:
x:=factorset(k):it:=0:
if bigomega(k) = 2
then
s:=x[1]+k/x[1]:
for m from 1 to s/2 do:
if isprime(m) and isprime(s-m)
then
it:=it+1:
else fi:
od:
if it = n
then
ii:=1: printf(`%d, `, k):
else fi:
fi:
od:
od:
PROG
(PARI) nbp(k) = {my(nb = 0); forprime(p=2, k\2, if (isprime(k-p), nb++); ); nb; }
a(n) = {forcomposite(k=1, oo, if (bigomega(k)==2, my(x=factor(k)[1, 1]); if (nbp(x+k/x)==n, return(k)); ); ); } \\ Michel Marcus, Apr 26 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Mar 05 2020
STATUS
approved