Every Deck

№
of 8.06e+67

How this deck is one integer

A deck ordering is a permutation, and a permutation can be written as a mixed-radix number. At each position we write down how many still-unplaced cards were smaller than the one we chose. That digit, times that position’s factorial weight, is its contribution. Sum them and you have the index.

index
0
parity
even
cycles
52, longest 1
#digitfromcardcontribution
00522♠ S20
10513♠ S30
20504♠ S40
30495♠ S50
40486♠ S60
50477♠ S70
60468♠ S80
70459♠ S90
804410♠ ST0
9043J♠ SJ0
10042Q♠ SQ0
11041K♠ SK0
12040A♠ SA0
130392♥ H20
140383♥ H30
150374♥ H40
160365♥ H50
170356♥ H60
180347♥ H70
190338♥ H80
200329♥ H90
2103110♥ HT0
22030J♥ HJ0
23029Q♥ HQ0
24028K♥ HK0
25027A♥ HA0
260262♦ D20
270253♦ D30
280244♦ D40
290235♦ D50
300226♦ D60
310217♦ D70
320208♦ D80
330199♦ D90
3401810♦ DT0
35017J♦ DJ0
36016Q♦ DQ0
37015K♦ DK0
38014A♦ DA0
390132♣ C20
400123♣ C30
410114♣ C40
420105♣ C50
43096♣ C60
44087♣ C70
45078♣ C80
46069♣ C90
470510♣ CT0
4804J♣ CJ0
4903Q♣ CQ0
5002K♣ CK0
5101A♣ CA0

The last digit is always 0 — by then one card is left, so there is nothing to choose between. That is why the effective radices run 52 down to 2, and why the space is exactly 52!.