Objects/Documentation
From rank to wheels
I decompose the rank by successive divisions and reconstruct the permutation by suffix rotations. At prime wheel p, digit aₚ makes the rank divisible by p exactly when it equals the smaller wheels’ residue modulo p.
Download ↓