OFFSET
1,2
COMMENTS
Where products of two distinct primes are in A006881.
If Polignac's conjecture is true, then every even positive integer occurs infinitely many times in this sequence. - Clark Kimberling, Apr 25 2016
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..1000
MAPLE
A006881 := proc(n) if n = 1 then 6; else for a from procname(n-1)+1 do if numtheory[bigomega](a) = 2 and nops(numtheory[factorset](a)) =2 then return a; end if; end do: end if; end proc:
A020639 := proc(n) numtheory[factorset](n) ; min(op(%)) ; end proc:
A006530 := proc(n) numtheory[factorset](n) ; max(op(%)) ; end proc:
# R. J. Mathar, May 01 2010
MATHEMATICA
mx = 350; t = Sort@Flatten@Table[Prime[n]*Prime[m], {n, Log[2, mx/3]}, {m, n + 1, PrimePi[mx/Prime[n]]}]; (* A006881, _Robert G.Wilson v_, Feb 07 2012 *)
u = Table[FactorInteger[t[[k]]][[1]], {k, 1, Length[t]}];
u1 = Table[u[[k]][[1]], {k, 1, Length[t]}] (* A096916 *)
PrimePi[u1] (* A270650 *)
v = Table[FactorInteger[t[[k]]][[2]], {k, 1, Length[t]}];
v1 = Table[v[[k]][[1]], {k, 1, Length[t]}] (* A070647 *)
PrimePi[v1] (* A270652 *)
d = v1 - u1 (* A176881 *) (* Clark Kimberling, Apr 25 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Apr 27 2010
EXTENSIONS
Entries checked by R. J. Mathar, May 01 2010
STATUS
approved