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”).

A061545
Number of pair-exchange / set-rotate sequences achieving the minimum length of A048200(n).
2
0, 2, 1, 1, 1, 2, 4, 16, 40, 512, 1472, 65536, 208896
OFFSET
1,2
LINKS
Sean A. Irvine, Java program (github)
Kevin Ryde, C Code
EXAMPLE
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.
PROG
(Java) /* See links. */
(C) /* See links. */
CROSSREFS
Cf. A048200, A378834 (LRE ways).
Sequence in context: A246576 A358273 A215894 * A287641 A265312 A241531
KEYWORD
more,nonn,changed
AUTHOR
Naohiro Nomoto, May 16 2001
EXTENSIONS
Sequence revised and a(9)-a(12) from Sean A. Irvine, Feb 21 2023
a(13) from Kevin Ryde, Dec 28 2024
STATUS
approved