Slot-packed natural numbers #
packN W d n = Σ_{j < n} d j · 2^(W j). When every digit is below 2^W, bitwise and, shifts,
slot-wise sums and differences, and horizontal sums (mod 2^W - 1) act digit by digit.
Σ_{j < n} d j · 2^(W j).
Equations
- Cayley.Pack.packN W d 0 = 0
- Cayley.Pack.packN W d n.succ = Cayley.Pack.packN W d n + d n * 2 ^ (W * n)