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-3 of 3 results.

A164366 Triangle read by rows: T(n,k) is the number of permutations of n elements with transposition distance equal to k, n >= 1 and 0 <= k <= A065603(n).

Original entry on oeis.org

1, 1, 1, 1, 4, 1, 1, 10, 12, 1, 1, 20, 68, 31, 1, 35, 259, 380, 45, 1, 56, 770, 2700, 1513, 1, 84, 1932, 13467, 22000, 2836, 1, 120, 4284, 52512, 191636, 114327, 1, 165, 8646, 170907, 1183457, 2010571, 255053, 1, 220, 16203, 484440, 5706464, 21171518, 12537954, 1, 286, 28600, 1231230, 22822293, 157499810, 265819779, 31599601, 1, 364, 48048, 2864719, 78829491, 910047453, 3341572727, 1893657570, 427, 1, 455, 77441, 6196333, 241943403, 4334283646, 29432517384, 47916472532, 5246800005
Offset: 1

Views

Author

Anthony Labarre, Aug 14 2009

Keywords

Comments

Here, a transposition refers to the exchange of two adjacent blocks, and NOT to an exchange of two nonnecessarily adjacent elements. The transposition distance is the minimum number of such moves required to transform a given permutation into the identity permutation.

Examples

			The triangle of T(n,k) (with rows n >= 1 and columns k >= 0) starts as follows:
  1,
  1,   1,
  1,   4,    1,
  1,  10,   12,      1,
  1,  20,   68,     31,
  1,  35,  259,    380,      45,
  1,  56,  770,   2700,    1513,
  1,  84, 1932,  13467,   22000,    2836,
  1, 120, 4284,  52512,  191636,  114327,
  1, 165, 8646, 170907, 1183457, 2010571, 255053,
  ...
The number of permutations of 4 elements with transposition distance 3 is 1, since only (4 3 2 1) cannot be sorted using fewer transpositions (upper bound can be easily found by hand; for the lower bound, see the paper by Bafna and Pevzner).
		

References

  • G. Fertin, A. Labarre, I. Rusu, E. Tannier, and S. Vialette, "Combinatorics of genome rearrangements", The MIT Press, 2009, page 26.

Crossrefs

Cf. A219243 (main "diagonal"). See also A065603.

Extensions

Edited by Max Alekseyev, Nov 07 2011
More terms from Gonçalves et al. added by Max Alekseyev, Nov 16 2012

A219243 Number of permutations of order n at the largest transposition distance (= A065603(n)) from the identity permutation.

Original entry on oeis.org

1, 1, 1, 1, 31, 45, 1513, 2836, 114327, 255053, 12537954, 31599601, 427, 5246800005
Offset: 1

Views

Author

Max Alekseyev, Nov 16 2012

Keywords

References

  • J. Gonçalves, L. R. Bueno, and R. A. Hausen, "A New and Improved Transposition Distance Database", Poster at RECOMB-CG 2012.

Crossrefs

Formula

a(n) = A164366(n, A065603(n)).

A048200 Minimal length pair-exchange / set-rotate sequence to reverse n distinct ordered elements.

Original entry on oeis.org

0, 1, 2, 4, 10, 15, 23, 32, 42, 55, 67, 84, 98, 119
Offset: 1

Views

Author

Keywords

Comments

"Rotate" is always a left-rotate (moves leftmost element to the right end) and "Exchange" is always a pair-exchange of the two leftmost elements.
a(15)<=135 and a(16)<=160. See example solutions in the links section. - Dmitry Kamenetsky, Jun 19 2025

Examples

			a(4) = 4 since "xrrx" is the shortest sequence reversing "ABCD". Explicitly, (begin) ABCD, (x)-> BACD, (r)-> ACDB, (r) -> CDBA, (x)-> DCBA.
		

Crossrefs

Programs

  • C
    /* See links. */
  • Java
    /* See links. */
    

Formula

Conjecture: a(n) = (3*n^2/4)-2*n if n is even and a(n) = (3*n^2-10*n+15)/4 if n is odd. See links for more information. - Sai Satwik Kuppili and Bhadrachalam Chitturi, Jun 09 2020

Extensions

a(11) added by Sai Satwik Kuppili and Srinath T, Bhadrachalam Chitturi, Jan 02 2019
a(12) from Sean A. Irvine, Jun 04 2021
a(13) from Kevin Ryde, Dec 19 2024
a(14) from Zachary DeStefano, Jan 03 2025
Showing 1-3 of 3 results.