A161173 a(n) is the order (or period) of the "Cat's" permutation applied to a list of n objects.
1, 1, 3, 4, 2, 4, 6, 10, 6, 10, 14, 12, 30, 36, 24, 14, 12, 56, 18, 66, 10, 60, 14, 110, 198, 126, 48, 133, 210, 78, 105, 18, 18, 110, 660, 396, 93, 552, 120, 616, 276, 345, 43, 108, 1122, 204, 702, 1904, 138, 598, 2310, 1080, 132, 330
Offset: 1
Keywords
Examples
a(9) = 6, because when the Cat's permutation is applied to {1,2,3,4,5,6,7,8,9} we get {9,1,5,3,7,8,6,4,2}, which corresponds to the product of a disjoint six cycle and a three cycle, and hence has order lcm(6,3)=6.
Links
- Andrew Howroyd, Table of n, a(n) for n = 1..2048
- Colm Mulcahy, The Yummie Deal and Variations, Card Colm, MAA Online, April 2009.
Crossrefs
Cf. A161172.
Programs
-
PARI
P(n,i)={if(n==1, 1, if(i%2==0, n+1-i\2, P((n+1)\2, (n+1)\2-i\2)))} Follow(s, f)={my(t=f(s), k=1); while(t>s, k++; t=f(t)); if(s==t, k, 0)} Cycles(n)={my(L=List()); for(i=1, n, my(k=Follow(i, j->P(n, j))); if(k, listput(L,k))); vecsort(Vec(L))} a(n)={lcm(Cycles(n))} \\ Andrew Howroyd, Apr 28 2020
Extensions
Some terms corrected by Andrew Howroyd, Apr 28 2020
Comments