OFFSET
1,2
COMMENTS
EXAMPLE
The permutations for n = 6, 720, 36, 25920, 30:
(1,2) (1,2,1,2,1,3,1) (1,1,2,2) (1,2,1,2,1,2,1,2,1,3,1) (1,2,3)
(2,1) (1,2,1,3,1,2,1) (1,2,1,2) (1,2,1,2,1,2,1,3,1,2,1) (1,3,2)
(1,3,1,2,1,2,1) (2,1,2,1) (1,2,1,2,1,3,1,2,1,2,1) (2,1,3)
(2,2,1,1) (1,2,1,3,1,2,1,2,1,2,1) (2,3,1)
(1,3,1,2,1,2,1,2,1,2,1) (3,1,2)
(3,2,1)
The terms together with their prime indices begin:
1: {}
6: {1,2}
24: {1,1,1,2}
30: {1,2,3}
36: {1,1,2,2}
180: {1,1,2,2,3}
210: {1,2,3,4}
360: {1,1,1,2,2,3}
420: {1,1,2,3,4}
720: {1,1,1,1,2,2,3}
1080: {1,1,1,2,2,2,3}
1260: {1,1,2,2,3,4}
1800: {1,1,1,2,2,3,3}
2160: {1,1,1,1,2,2,2,3}
2310: {1,2,3,4,5}
2520: {1,1,1,2,2,3,4}
3600: {1,1,1,1,2,2,3,3}
MATHEMATICA
y=Table[Length[Select[Permutations[Join@@ConstantArray@@@FactorInteger[n]], SameQ@@Length/@Split[#]&]], {n, 0, 1000}];
fip[y_]:=Select[Range[Length[y]], !MemberQ[Take[y, #-1], y[[#]]]&];
fip[Rest[y]]
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, Apr 09 2025
STATUS
approved
