OFFSET
1,3
COMMENTS
From Kristjan Kiolein, Mar 25 2023: (Start)
Conjecture: a(n) is the number of riffle shuffles of 2(n-1) cards required to reverse the order of the deck, or 0 if no such number of shuffles exists.
The number of shuffles required to reverse the deck is A002326(n)/2 when a(n) != 0 and n != 1.
This conjecture is in the context of the in-shuffle variant of the riffle shuffle, e.g., [1, 2, 3, 4] -> [3, 1, 4, 2] -> [4, 3, 2, 1].
This does not apply in the context of the out-shuffle variant of the riffle shuffle, e.g., [1, 2, 3, 4] -> [1, 3, 2, 4] -> [1, 2, 3, 4]. (End)
LINKS
V. Raman, Table of n, a(n) for n = 1..100.
PROG
(PARI) for(i=0, 200, i++; m=0; for(x=1, i, if(((2^x+1))%i==0, m=x; break)); print1(m", ")) \\ V. Raman, Nov 22 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
V. Raman, Sep 07 2012
STATUS
approved