A356224 Number of divisors of n whose prime indices cover an initial interval of positive integers.
1, 2, 1, 3, 1, 3, 1, 4, 1, 2, 1, 5, 1, 2, 1, 5, 1, 4, 1, 3, 1, 2, 1, 7, 1, 2, 1, 3, 1, 4, 1, 6, 1, 2, 1, 7, 1, 2, 1, 4, 1, 3, 1, 3, 1, 2, 1, 9, 1, 2, 1, 3, 1, 5, 1, 4, 1, 2, 1, 7, 1, 2, 1, 7, 1, 3, 1, 3, 1, 2, 1, 10, 1, 2, 1, 3, 1, 3, 1, 5, 1, 2, 1, 5, 1, 2, 1
Offset: 1
Keywords
Examples
The a(n) gapless divisors of n = 1..24: 1 2 1 4 1 6 1 8 1 2 1 12 1 2 1 16 1 18 1 4 1 2 1 24 1 2 2 4 1 6 1 8 6 2 1 12 1 1 2 4 4 2 1 8 1 2 2 1 6 1 1 4 2 1 For example, the divisors of 12 are {1,2,3,4,6,12}, of which {1,2,4,6,12} belong to A055932, so a(12) = 5.
Crossrefs
Programs
-
Mathematica
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; normQ[m_]:=m=={}||Union[m]==Range[Max[m]]; Table[Length[Select[Divisors[n],normQ[primeMS[#]]&]],{n,100}]
Comments