OFFSET
1,2
COMMENTS
The minimum number of steps is A186752(n).
For n=2, steps L,R,E all have the same effect but each is taken as a separate way so that a(2) = 3.
For 4 <= n <= 13, a(n) = (h+2)*2^h*h! where h = floor((n-4)/2).
EXAMPLE
For n=1, permutation {1} is already its own reversal so has a(1) = 1 way of no steps (A186752(1) = 0).
For n=5, the a(5) = 2 ways to reverse {1,2,3,4,5} by A186752(5) = 8 steps are
E, L, L, E, L, E, R, E
E, L, E, R, E, R, R, E
Notice these are inverses: reverse the order and flip L<->R in one makes the other.
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Kevin Ryde, Dec 09 2024
STATUS
approved