OFFSET
1,2
COMMENTS
a(2*n) = 2*a(n) since the cycle lengths of the permutation with size 2*n is effectively that of size n twice, doubled. Thus, the LCM/order is doubled.
LINKS
Mia Boudreau, Table of n, a(n) for n = 1..10000
Mia Boudreau, Java program, GitHub
FORMULA
a(2*n) = 2*a(n).
a(2^n) = 2^n.
Conjecture: a(2^n + 2^x) = 2^n * (x-n) if x > n.
a(2^n - 1) = A003418(n-1).
s(2^n + 1) = A000027(n).
a(2*n - 1) = A051732(n).
a(A004626(n)) % 2 = 1.
a(A065119(n)) = n/3.
a(A001122(n)) = (n-1) / 2.
a(A155072(n)) = (n-1) / 4.
a(A001133(n)) = (n-1) / 6.
a(A001134(n)) = (n-1) / 8.
a(A001135(n)) = (n-1) / 10.
a(A225759(n)) = (n-1) / 16.
EXAMPLE
For n = 11, the permutation is {0,3,4,7,8,1,2,9,10,5,6} and it has order a(11) = 5.
PROG
(Python)
from sympy.combinatorics import Permutation
def a(n):
L = list(range(n))
for i in range(n):
if (j:= (i << 1) % n) != i:
L[i], L[j] = L[j], L[i]
return Permutation(L).order() # Darío Clavijo, Jun 05 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Mia Boudreau, May 29 2025
STATUS
approved
