login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A059953 Ordering of a deck of 52 cards after an out-shuffle. 1
1, 27, 2, 28, 3, 29, 4, 30, 5, 31, 6, 32, 7, 33, 8, 34, 9, 35, 10, 36, 11, 37, 12, 38, 13, 39, 14, 40, 15, 41, 16, 42, 17, 43, 18, 44, 19, 45, 20, 46, 21, 47, 22, 48, 23, 49, 24, 50, 25, 51, 26, 52 (list; graph; refs; listen; history; text; internal format)
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
Cf. A059952.
Sequence in context: A040725 A040726 A040727 * A190994 A036195 A040728
KEYWORD
nonn,easy,fini,full
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371964 sequences. (Running on oeis4.)