A161172 a(n) is the order (or period) of the "Yummie" permutation applied to a set of n objects.
1, 2, 3, 3, 5, 5, 6, 7, 15, 20, 11, 24, 24, 14, 6, 28, 17, 120, 55, 180, 21, 18, 60, 42, 90, 153, 140, 429, 56, 152, 60, 70, 483, 3640, 180, 272, 72, 1260, 180, 252, 174, 1260, 36, 442, 1404, 660, 47, 496, 240, 481, 48, 98, 570, 572
Offset: 1
Keywords
Examples
a(9) = 15, because when the Yummie permutation is applied to {1,2,3,4,5,6,7,8,9} we get {6,2,4,8,9,7,5,3,1}, which corresponds to the product of a disjoint five cycle and a three cycle, and hence has order 15.
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
Programs
-
PARI
P(n,i)={if(i%2, n-(i\2), P(n\2, (n-i)\2+1))} 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
Comments