OFFSET
1,2
LINKS
Eric Weisstein's World of Mathematics, Riffle Shuffle.
MATHEMATICA
Riffle[Range[26], Range[27, 52]] (* Harvey P. Dale, Aug 17 2017 *)
PROG
(Python)
def out_shuffle(deck):
shuffle = [i for i in range(len(deck))]
shuffle[0::2] = deck[:(len(deck)+1)//2]
shuffle[1::2] = deck[(len(deck)+1)//2:]
return shuffle
print(out_shuffle(range(1, 53))) # Michael S. Branicky, Jan 27 2021
CROSSREFS
KEYWORD
nonn,easy,fini,full
AUTHOR
STATUS
approved