OFFSET
3,1
COMMENTS
Each FO3C2 move Flips Over the top 3 cards as a unit and then Cuts 2 cards from the top to bottom. - Mulcahy
REFERENCES
Colm Mulcahy, Mathematical Card Magic: Fifty-Two New Effects, A K Peters, 2013, chapter 9.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 3..1000
Index entries for linear recurrences with constant coefficients, signature (0,3,0,-3,0,1).
FORMULA
Assume n >=3. For odd n we have a(n) = n-1 and for even n we have a(n) = (n-2)n/2. Equivalently, a(2k+1) = 2k and a(2k) = 2k(k-1).
a(n) = 3*a(n-2)-3*a(n-4)+a(n-6). - Colin Barker, Jun 04 2014
G.f.: 2*x^3*(x^2-2*x-1) / ((x-1)^3*(x+1)^3). - Colin Barker, Jun 04 2014
PROG
(PARI) a(n)={
if(n<6, return(if(n>3, 4, 2)));
n--;
my(deck=vector(n, i, i), original=deck, steps);
while(1,
steps+=2;
deck=concat(deck[5..n], -[deck[2], deck[1], deck[4], deck[3]]);
if(deck==original, return(steps))
)
}; \\ Charles R Greathouse IV, May 03 2013
(PARI) a(n)=if(n%2, n-1, n*(n-2)/2) \\ Charles R Greathouse IV, May 06 2013
(PARI) Vec(2*x^3*(x^2-2*x-1)/((x-1)^3*(x+1)^3) + O(x^100)) \\ Colin Barker, Jun 04 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colm Mulcahy, May 03 2013
EXTENSIONS
a(10), a(12)-a(64) from Charles R Greathouse IV, May 03 2013
STATUS
approved