OFFSET
1,1
COMMENTS
Actually called overhand shuffle in the article. - Michel Marcus, Jun 22 2013
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Steve M. Cohen and Paul R. Coe, Card shuffling in discrete mathematics, The College Mathematics Journal, Vol. 26, No. 3 (May, 1995), pp. 224-227.
FORMULA
a(n) = 2*min(k) with k such that 4^k == 1 (mod 2n-1), see page 227 of article. - Michel Marcus, Jun 22 2013
MATHEMATICA
a[n_] := LCM[MultiplicativeOrder[2, 2n-1], 2]; Array[a, 100] (* Jean-François Alcover, Dec 10 2015, adapted from PARI *)
PROG
(PARI) a(n)=lcm(znorder(Mod(2, 2*n-1)), 2) \\ Charles R Greathouse IV, Jun 24 2013
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert G. Wilson v, Jul 05 2000
STATUS
approved