OFFSET
1,4
COMMENTS
LINKS
Sean A. Irvine, Java program (github)
EXAMPLE
a[5] (the output of the program below in which a is the list of the first n terms of the sequence) is 4 because that is the number of products of sublists of [(2,1),(3,2,1),(4,3,2,1),(5,4,3,2,1)] which are 5-cycles, namely (5,4,3,2,1) itself, (3,2,1)*(5,4,3,2,1) = (5,4,3,1,2), (2,1)*(4,3,2,1)*(5,4,3,2,1) = (5,4,2,3,1) and (2,1)*(3,2,1)*(4,3,2,1)*(5,4,3,2,1) = (5,4,2,1,3).
PROG
(GAP) a := []; p := (); perms := [p]; for i in [1..n] do pp := perms*p; pp1 := Filtered(pp, m -> CycleLength(m, [1..i], 1) = i); a[i] := Length(pp1); perms := Union(perms, pp); p := p*(i, i+1); od;
CROSSREFS
KEYWORD
nonn,nice,more
AUTHOR
Simon P. Norton, Feb 27 2002
EXTENSIONS
a(21)-a(33) from Sean A. Irvine, Feb 10 2024
STATUS
approved