OFFSET
1,1
LINKS
T. D. Noe, Table of n, a(n) for n=1..10000
EXAMPLE
a(1) = 8 = 24-16 where 16 is the first 4-almost prime and 24 is the second.
a(2) = 12 = 36-24.
a(3) = 4 = 40-36.
a(4) = 14 = 54-40.
a(5) = 2 = 56-54.
a(6) = 4 = 60-56.
a(7) = 21 = 81-60.
a(13) = 22 = 126-104.
a(21) = 28 = 184-156.
MAPLE
A114404 := proc(nmax) local a, i, a014613 ; a := [] ; i := 1 ; a014613 := -1 ; while nops(a) < nmax do if numtheory[bigomega](i) = 4 then if a014613 > 0 then a := [op(a), i-a014613] ; fi ; a014613 := i ; fi ; i := i+1 ; end: a ; end: A114404(200) ; # R. J. Mathar, May 10 2007
MATHEMATICA
Differences[Select[Range[800], Total[FactorInteger[#][[All, 2]]]==4&]] (* Harvey P. Dale, Feb 14 2017 *)
Select[Range[1000], PrimeOmega[#]==4&]//Differences (* Harvey P. Dale, May 12 2018 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Nov 25 2005
EXTENSIONS
Corrected and extended by R. J. Mathar, May 10 2007
STATUS
approved