cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A039745 Diameter of symmetric group S_n when generated by (1,2) and (1,2,3,...,n).

Original entry on oeis.org

0, 1, 2, 6, 11, 18, 25, 35, 45, 58, 71, 87, 103, 122, 141
Offset: 1

Views

Author

Keywords

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

Examples

			a(3)=2 because (1,3,2) = (1,2,3)(1,2).
		

Crossrefs

Cf. A378881 (antipodal permutations), A186144 (number of them).
Cf. A186783 (LRE diameter).

Programs

  • Mathematica
    a[n_] := GraphDiameter[CayleyGraph[SymmetricGroup[n]]] (* Ben Whitmore, Nov 13 2020 *)
  • Sage
    def a(n): return PermutationGroup([[(1,2)],[tuple(1..n)]]).cayley_graph().diameter() # Max Alekseyev, Mar 02 2010

Extensions

a(12)-a(13) by Ben Whitmore, Nov 12 2020
a(14) by Dmytro Fedoriaka, Jun 30 2025
a(15) by Dmytro Fedoriaka, Jul 14 2025

A186144 Number of elements in the symmetric group S_n whose distance from a fixed element is the group diameter under compositions of (1,2) and (1,2,...,n).

Original entry on oeis.org

1, 1, 3, 3, 2, 1, 2, 1, 2, 1, 2, 1, 2
Offset: 1

Views

Author

Tony Bartoletti, Feb 23 2011

Keywords

Comments

a(n) is the number of elements in the symmetric group S_n that are maximally distant from any fixed element, where distance is taken to be the minimal sequence of operations composed from transposition (1,2) and rotation (1,2,...,n) producing one element from another. This maximal distance is the diameter of S_n under the stated compositions, given by A039745(n).
From Ben Whitmore, Nov 14 2020: (Start)
Conjecture (verified up to n = 13): Consider the a(n) permutations that take A039745(n) steps to reach the identity. For odd n>5, we have a(n) = 2 and the actions of these permutations on the list [1, 2, ..., n] are
[2, 1, (n+3)/2, n, n-1, ..., (n+5)/2, (n+1)/2, (n-1)/2, ..., 4, 3],
[2, 1, n-1, n-2, ..., (n+3)/2, n, (n+1)/2, (n-1)/2, ..., 4, 3],
and for even n>5, we have a(n) = 1 and the action of the permutation is
[2, n, 1, n-1, n-2, ..., 4, 3].
(End)

Crossrefs

Formula

Conjecture: For n>4, a(n) = 1 if n is even, a(n) = 2 if n is odd. - Ben Whitmore, Nov 14 2020

Extensions

a(10)-a(13) by Ben Whitmore, Nov 14 2020
Showing 1-2 of 2 results.