Note: my calculation above is too simple, not all suit patterns occur the same number of time.
I did a crude approximation, checking how many rank pattern are there per suit pattern (with not completely ordered cards for simplicity and no separation of holes and board, so very far away from truth).
How many rank pattern per suit pattern (hand not completely ordered!!!):
Code:
7 same: (13 choose 7) = 1716
6+1: (13 choose 6) * 13 = 22308
5+2: (13 choose 5) * (13 choose 2) = 100386
5+1+1: (13 choose 5) * 13^2 = 217503
4+3: (13 choose 4) * (13 choose 3) = 204490
4+1+1+1: (13 choose 4) * 13^3 = 1570855
4+2+1: (13 choose 4) (13 choose 2) * 13 = 725010
3+2+1+1: (13 choose 3) (13 choose 2) * 13^2 = 3770052
3+2+2: (13 choose 3) (13 choose 2)^2 = 1740024
3+3+1: (13 choose 3)^2 * 13 = 1063348
2+2+2+1: (13 choose 2)^3 * 13 = 6169176
Total sum(ordered_suit_pattern * not_ordered_rank_pattern):
(1*1716) + (7*22308) + (21*100386) + (21*217503) + (35*204490) + (35*1570855) + (105*725010) + (210*3770052) + (105*1740024) + (70*1063348) + (105*6169176) = 1841707946
Djhemlig Total: (1*1716) + (7*22308) + (21*100386) + (21*217503) + (35*204490) + ((35-10+1)*1570855) + ((105-30+1)*725010) + ((210-150+1)*3770052) + ((105-75+1)*1740024) + ((70-15+1)*1063348) + (1*6169176) = 459564261
So Djhemlig would be 1841707946/459564261 = 4.0075 times larger without that trick.
So: 52402675 * 4.0075 = 210,003,720 (so larger than 124M).
Note again: this is very ugly and far away from the truth, just wanted an estimate to know if that table size is possible without missing cases.
I let it be for now and just use Djhemlig LUT.