OFFSET
1,2
COMMENTS
EXAMPLE
The terms together with their prime indices begin:
1: {}
6: {1,2}
12: {1,1,2}
24: {1,1,1,2}
30: {1,2,3}
48: {1,1,1,1,2}
60: {1,1,2,3}
72: {1,1,1,2,2}
120: {1,1,1,2,3}
144: {1,1,1,1,2,2}
180: {1,1,2,2,3}
192: {1,1,1,1,1,1,2}
210: {1,2,3,4}
288: {1,1,1,1,1,2,2}
360: {1,1,1,2,2,3}
384: {1,1,1,1,1,1,1,2}
432: {1,1,1,1,2,2,2}
480: {1,1,1,1,1,2,3}
MATHEMATICA
primeMS[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
fir[q_]:=Select[Range[Length[q]], !MemberQ[Take[q, #-1], q[[#]]]&];
fir[Table[Length[Permutations[primeMS[n]]], {n, 1000}]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Nov 21 2022
STATUS
approved