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.

A061545 Number of pair-exchange / set-rotate sequences achieving the minimum length of A048200(n).

Original entry on oeis.org

0, 2, 1, 1, 1, 2, 4, 16, 40, 512, 1472, 65536, 208896
Offset: 1

Views

Author

Naohiro Nomoto, May 16 2001

Keywords

Examples

			Let "r" denote rotation and "x" an exchange.
For n = 5, the shortest sequence reversing "ABCDE" has length A048200(5) = 10, the only sequence doing so is "xrrxrrxrxr", so a(5) = 1.
For n = 6, we have A048200(6) = 15, but there are 2 solutions of this length "xrxrrxrxrrxrrrx" and "rxrrxrxrrxrxrrx", so a(6) = 2.
		

Crossrefs

Cf. A048200, A378834 (LRE ways).

Programs

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

Extensions

Sequence revised and a(9)-a(12) from Sean A. Irvine, Feb 21 2023
a(13) from Kevin Ryde, Dec 28 2024

A176690 Partial sums of A048200.

Original entry on oeis.org

0, 1, 3, 7, 17, 32, 55, 87, 129, 184, 251
Offset: 1

Views

Author

Jonathan Vos Post, Apr 23 2010

Keywords

Comments

Partial sums of minimal length pair-exchange / set-rotate sequence to reverse n distinct ordered elements. The subsequence of primes in this partial sum begins: 3, 7, 17.

Examples

			a(5) = 0 + 1 + 2 + 4 + 10 = 17 is prime.
		

Crossrefs

Cf. A048200.

Formula

a(n) = Sum_{i=1..n} A048200(i).

Extensions

a(10)-a(11) from Sai Satwik Kuppili and Bhadrachalam Chitturi, Apr 16 2019

A186752 Length of minimum representation of the permutation [n,n-1,...,1] as the product of transpositions (1,2) and left and right rotations (1,2,...,n).

Original entry on oeis.org

0, 1, 2, 4, 8, 13, 19, 26, 34, 43, 53, 64, 76
Offset: 1

Views

Author

Tony Bartoletti, Feb 26 2011

Keywords

Comments

Example: Taking "0" to indicate the "left" rotation (1,2,...,n) -> (2,3,...,n,1), "1" to represent the transposition (1,2), and "2" to indicate the "right" rotation (1,2,...,n) -> (n,1,2,...n-1), the sequence 10010121 (length = 8) is a minimal sequence producing the reverse permutation on S_5.
It was suggested that a(10) = 61, but this cannot be correct. It would conflict with A186783(10)=45, the diameter of the set under these same operations. We must have a(n) <= A186783(n) for all n. - Tony Bartoletti, Mar 08 2019
Conjecture: for n>=4, a(n)=A186783(n)-2. Conjecture holds for n<=13. - Dmitry Kamenetsky, Jun 15 2025

Crossrefs

Cf. A378834 (number of ways), A048200 (LE reversal distance).

Programs

  • Sage
    def a186752(n): t = tuple(1..n); G = PermutationGroup([[(1, 2)], [t], PermutationGroupElement([t])^(-1)]); return G.cayley_graph().distance(G.one(),G(list(t)[::-1])) # Max Alekseyev, Sep 09 2011

Extensions

a(9) from Max Alekseyev, Sep 09 2011
Incorrect value for a(10) deleted by N. J. A. Sloane, Mar 09 2019
a(10) and a(11) added by Sai Satwik Kuppili and Bhadrachalam Chitturi, Mar 28 2019
a(12) and a(13) from Kevin Ryde, Dec 12 2024
Showing 1-3 of 3 results.