OFFSET
1,1
COMMENTS
Numbers k such that both k and k + 2 are in A014612.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
a(1) = 18 because 18 = 2*3*3 and 18+2 = 20 = 2*2*5 both have 3 prime divisors, counted with multiplicity.
a(2) = 28 because 28 = 2*2*7 and 28+2 = 30 = 2*3*5 both have 3 prime divisors, counted with multiplicity.
MATHEMATICA
#[[1, 1]]&/@(Select[Partition[Table[{n, PrimeOmega[n]}, {n, 1000}], 3, 1], #[[1, 2]]==#[[3, 2]]==3&]) (* Harvey P. Dale, Oct 20 2011 *)
SequencePosition[PrimeOmega[Range[1000]], {3, _, 3}][[All, 1]] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Apr 08 2017 *)
PROG
(PARI) is(n)=bigomega(n)==3 && bigomega(n+2)==3 \\ Charles R Greathouse IV, Jan 31 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Aug 10 2010
EXTENSIONS
More terms from R. J. Mathar, Aug 13 2010
STATUS
approved