OFFSET
1,1
COMMENTS
All terms are divisible by 6.
Subset of A014574. - Robert Israel, Feb 11 2016
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
a(1) = 30 = 2 * 3 * 5 which is squarefree. 30^2 + 1 = 901 = 17 * 53; 30^2 - 1 = 899 = 29 * 31; 901 and 899 are both semiprime.
a(2) = 42 = 2 * 3 * 7 which is squarefree. 42^2 + 1 = 1765 = 5 * 353; 30^2 - 1 = 1763 = 41 * 43; 1765 and 1763 are both semiprime.
MAPLE
MATHEMATICA
Select[Range[100000], SquareFreeQ[#] && PrimeOmega[#^2 + 1] == 2 && PrimeOmega[#^2 - 1] == 2 &]
PROG
(PARI) for(n=2, 1000, issquarefree(n) & bigomega(n^2 + 1)==2 & bigomega(n^2 - 1)==2 & print1(n, ", "))
(Magma) IsP2:=func< n | &+[k[2]: k in Factorization(n)] eq 2 >; [ n: n in [2..50000] | IsSquarefree(n) and IsP2(n^2+1) and IsP2(n^2-1)];
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Feb 11 2016
STATUS
approved