A376514 Number of divisors of n that are neither squarefree nor prime powers.
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 2, 0, 0, 0, 1, 1, 0, 0, 3, 0, 1, 0, 1, 0, 2, 0, 2, 0, 0, 0, 3, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 5, 0, 0, 1, 1, 0, 0, 0, 3, 0, 0, 0, 3, 0, 0, 0
Offset: 1
Links
- Michael De Vlieger, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
{0}~Join~Table[DivisorSigma[0, n] - Total@ #1 - 2^#2 + #2 & @@ {#, Length[#]} &[FactorInteger[n][[All, -1]] ], {n, 2, 120}] (* or *) Table[DivisorSum[n, 1 &, Nor[PrimePowerQ[#], SquareFreeQ[#]] &], {n, 120}]
Comments