OFFSET
0,3
LINKS
Miklós Bóna and Rebecca Smith, Pattern Avoidance in Permutations and Their Squares, Discrete Mathematics, 342 (2019), pp. 3194-3200; arXiv:1901.00026 [math.CO], 2019.
Amanda Burcroff and Colin Defant, Pattern-Avoiding Permutation Powers, Discrete Mathematics, 343 (2020), 112017; arXiv:1907.09451 [math.CO], 2019.
FORMULA
a(n) = A014495(n) + A370686(n), where the 1st (resp. 2nd) term counts 132-avoiding permutations of order 2 (resp. 1 or 3). - Andrey Zabolotskiy, Apr 13 2025
PROG
(SageMath)
def a(n):
return len([p for p in Permutations(n)
if p*p == Permutations(n).identity() and p.avoids([1, 3, 2])
or p*p*p == Permutations(n).identity() and p.avoids([1, 3, 2]) and (p*p).avoids([1, 3, 2])]) # Andrey Zabolotskiy, Apr 13 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Amanda Burcroff, Aug 15 2019
EXTENSIONS
Terms a(16) onwards using the formula from Andrey Zabolotskiy, Apr 14 2025
STATUS
approved
