OFFSET
1,2
EXAMPLE
The permutations for n = 12, 96, 360, 1536:
(1,1,2) (1,1,1,1,1,2) (1,1,1,2,2,3) (1,1,1,1,1,1,1,1,1,2)
(2,1,1) (1,1,1,2,1,1) (1,1,1,3,2,2) (1,1,1,1,1,1,1,2,1,1)
(1,1,2,1,1,1) (2,2,1,1,1,3) (1,1,1,1,1,1,2,1,1,1)
(2,1,1,1,1,1) (2,2,3,1,1,1) (1,1,1,1,1,2,1,1,1,1)
(3,1,1,1,2,2) (1,1,1,1,2,1,1,1,1,1)
(3,2,2,1,1,1) (1,1,1,2,1,1,1,1,1,1)
(1,1,2,1,1,1,1,1,1,1)
(2,1,1,1,1,1,1,1,1,1)
MATHEMATICA
y=Table[Length[Select[Permutations[Join@@ConstantArray@@@FactorInteger[n]], UnsameQ@@Length/@Split[#]&]], {n, 0, 100000}];
fip[y_]:=Select[Range[Length[y]], !MemberQ[Take[y, #-1], y[[#]]]&];
fip[Rest[y]]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Gus Wiseman, Apr 09 2025
STATUS
approved
