OFFSET
1,8
COMMENTS
A prime index of n is a number m such that prime(m) divides n. The multiset of prime indices of n is row n of A112798.
EXAMPLE
The prime indices of 180 are {1,1,2,2,3}, conjugate {5,3,1}, and we have choices:
{{5},{3},{1}}
{{5},{2,1},{1}}
{{4,1},{3},{1}}
{{4,1},{2,1},{1}}
{{3,2},{3},{1}}
{{3,2},{2,1},{1}}
so a(180) = 6.
MATHEMATICA
fop[y_]:=Join@@@Tuples[strptns/@y];
conj[y_]:=If[Length[y]==0, y, Table[Length[Select[y, #>=k&]], {k, 1, Max[y]}]];
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Table[Length[fop[conj[prix[n]]]], {n, 100}]
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 23 2025
STATUS
approved
