OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..500
EXAMPLE
82 = 2*41, 82^2 - 7 = 6717 = 3*2239 and 82^2 + 7 = 6731 = 53*127 are all semiprime, hence 82 is a term.
MATHEMATICA
f[n_]:=Last/@FactorInteger[n]=={1, 1}||Last/@FactorInteger[n]=={2}; lst={}; Do[If[f[n], a=n^2-7; b=n^2+7; If[f[a]&&f[b], AppendTo[lst, n]]], {n, 8!}]; lst
Select[Range[4500], Thread[PrimeOmega[{#, #^2-7, #^2+7}]]=={2, 2, 2}&] (* Harvey P. Dale, Jul 27 2022 *)
PROG
(Magma) IsSemiprime:=func< n | &+[ k[2]: k in Factorization(n) ] eq 2 >; [ n: n in [2..4300] | IsSemiprime(n) and IsSemiprime(n^2-7) and IsSemiprime(n^2+7) ]; // Klaus Brockhaus, Feb 25 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Feb 09 2010
EXTENSIONS
Edited by Klaus Brockhaus and N. J. A. Sloane, Feb 25 2010
STATUS
approved