Packing a wanted output's digits #
The binary mask selects inner positions. At each remaining position, consume one digit from each compressed base-three offset and emit their row-major base-ten digit. All three numberings put the first coordinate in the least significant place.
Main definitions #
QueryDigits.pack: the arithmetic recurrence computed by the native query encoder.
Main results #
QueryDigits.pack_lt: the packed word occupies at most the original number of digits.
This recurrence and its elementary bounds are original implementation mathematics.