OFFSET
1,12
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
EXAMPLE
For n = 24: The divisors of 24 are 1, 2, 3, 4, 6, 8, 12, 24. Four of those divisors, namely 4, 6, 8 and 12 are composite and < 24, so a(24) = 4.
MATHEMATICA
a[n_] := Length[Select[Most[Divisors[n]], CompositeQ]]; Array[a, 87] (* Amiram Eldar, Nov 12 2018 *)
PROG
(PARI) a(n) = my(d=divisors(n), i=0); for(k=2, #d-1, if(!ispseudoprime(d[k]), i++)); i
(PARI) a(n) = sumdiv(n, d, (d<n) && (d>1) && !isprime(d)); \\ Michel Marcus, Nov 12 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Felix Fröhlich, Nov 12 2018
STATUS
approved