OFFSET
1,1
FORMULA
a(n) <= A114403(n) - 1.
EXAMPLE
MAPLE
isA014612 :=proc(n) if numtheory[bigomega](n) = 3 then true ; else false ; fi ; end: isA002808 := proc(n) RETURN(not isprime(n) and n <> 1 ); end: A126436 := proc(nmax) local a ; a := -1 ; for n from 1 to nmax do if isA014612(n) then if a >= 0 then printf("%d, ", a) ; fi ; a := 0 ; elif isA002808(n) and a>= 0 then a := a+1 ; fi ; od : end: A126436(300) : # R. J. Mathar, Apr 03 2007
MATHEMATICA
nmax = 72;
S = Select[Range[300](* increase range if a(n) unevaluated *), PrimeOmega[#] == 3&];
a[n_ /; n+1 <= Length[S]] := Count[Range[S[[n]]+1, S[[n+1]]-1], _?CompositeQ];
Table[a[n], {n, 1, nmax}] (* Jean-François Alcover, Oct 26 2023 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Mar 12 2007
EXTENSIONS
More terms from R. J. Mathar, Apr 03 2007
STATUS
approved