OFFSET
1,2
COMMENTS
EXAMPLE
The terms, prime indices, and corresponding multisets begin:
1: {} {}
2: {1} {1}
3: {2} {1,1}
5: {3} {1,1,1}
6: {1,2} {1,1,2}
7: {4} {1,1,1,1}
10: {1,3} {1,1,1,2}
11: {5} {1,1,1,1,1}
13: {6} {1,1,1,1,1,1}
14: {1,4} {1,1,1,1,2}
15: {2,3} {1,1,1,2,2}
17: {7} {1,1,1,1,1,1,1}
19: {8} {1,1,1,1,1,1,1,1}
21: {2,4} {1,1,1,1,2,2}
22: {1,5} {1,1,1,1,1,2}
23: {9} {1,1,1,1,1,1,1,1,1}
25: {3,3} {1,1,1,2,2,2}
26: {1,6} {1,1,1,1,1,1,2}
MATHEMATICA
nrmptn[n_]:=Join@@MapIndexed[Table[#2[[1]], {#1}]&, If[n==1, {}, Flatten[Cases[FactorInteger[n]//Reverse, {p_, k_} :> Table[PrimePi[p], {k}]]]]];
lasQ[y_]:=Select[Permutations[y], UnsameQ@@Length/@Split[#]&]!={};
Select[Range[100], lasQ@*nrmptn]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Apr 12 2025
STATUS
approved
