OFFSET
0,8
COMMENTS
An "imperfect" (generalized) faro shuffle with cut of size k for a deck of size n is performed by first cutting the deck into a top pile of k cards and a bottom pile of n-k cards, performing a perfect faro shuffle on the bottomost min(k,n-k) cards of each pile and placing any remaining cards on top of the deck. (Thus k may range from 0 to n inclusive, hence the offset is 0). The central column T(2k,k) gives the "perfect" faro shuffle cycles A002326.
LINKS
Marc LeBrun, First 100 rows, flattened
EXAMPLE
T(5,2)=4 because the (5,2) shuffle cycles with period 4:
12345 --> 31425 --> 43215 --> 24135 --> 12345 etc.
CROSSREFS
KEYWORD
AUTHOR
Marc LeBrun, Sep 25 2006
STATUS
approved