OFFSET
1,3
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.
LINKS
Wikipedia, Cartesian product.
EXAMPLE
The a(49) = 6 ways are: (1,2), (1,4), (2,1), (2,4), (4,1), (4,2).
The a(182) = 5 ways are: (1,2,3), (1,2,6), (1,4,2), (1,4,3), (1,4,6).
The a(546) = 2 ways are: (1,2,4,3), (1,2,4,6).
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Table[Length[Select[Tuples[Divisors/@primeMS[n]], UnsameQ@@#&]], {n, 100}]
CROSSREFS
Positions of 0's are A355740.
A000005 counts divisors.
A001222 counts prime factors with multiplicity.
A003963 multiplies together the prime indices of n.
A120383 lists numbers divisible by all of their prime indices.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Jul 18 2022
STATUS
approved