A333748 Number of nonprime divisors of n that are <= sqrt(n).
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 3, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 3, 1, 1, 1, 3, 1, 2, 1, 2, 1, 1, 1, 4, 1, 1, 1, 2, 1, 2, 1, 3, 2, 1, 1, 3, 1, 1, 1, 3, 1, 3, 1, 2, 1, 1, 1, 4, 1, 1, 2, 3
Offset: 1
Keywords
Programs
-
Mathematica
Table[DivisorSum[n, 1 &, # <= Sqrt[n] && !PrimeQ[#] &], {n, 1, 100}] nmax = 100; CoefficientList[Series[Sum[Boole[!PrimeQ[k]] x^(k^2)/(1 - x^k), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
-
PARI
a(n) = sumdiv(n, d, (d^2<=n) && !isprime(d)); \\ Michel Marcus, Apr 03 2020