login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A039745
Diameter of symmetric group S_n when generated by (1,2) and (1,2,3,...,n).
4
0, 1, 2, 6, 11, 18, 25, 35, 45, 58, 71, 87, 103
OFFSET
1,3
COMMENTS
a(n) is smallest number such that every element of S_n can be written as a product of at most a(n) terms each of which is the transposition (1,2) or the n-cycle (1,2,3,...,n).
The distinction between A039745 (this sequence) and A186783 comes from whether we treat the Cayley graph of the generating set as directed or undirected (alternatively, whether we allow multiplication by inverses of generators when constructing elements). A039745 deals with the directed Cayley graph, while A186783 deals with the undirected one. - Max Alekseyev, Sep 09 2011
EXAMPLE
a(3)=2 because (1,3,2) = (1,2,3)(1,2).
MATHEMATICA
a[n_] := GraphDiameter[CayleyGraph[SymmetricGroup[n]]] (* Ben Whitmore, Nov 13 2020 *)
PROG
(Sage) def a(n): return PermutationGroup([[(1, 2)], [tuple(1..n)]]).cayley_graph().diameter() # Max Alekseyev, Mar 02 2010
CROSSREFS
Cf. A378881 (antipodal permutations), A186144 (number of them).
Cf. A186783 (LRE diameter).
Sequence in context: A231559 A104813 A239698 * A298872 A298875 A329598
KEYWORD
hard,nonn,nice,more
EXTENSIONS
a(12)-a(13) by Ben Whitmore, Nov 12 2020
STATUS
approved