The standard theoretical technique for encoding a list of numbers as a single number is Gödel encoding. It can be applied as many times as you like—e.g. to encode a list of lists of numbers, or a list of lists of lists of numbers. https://en.wikipedia.org/wiki/G%C3%B6del_numbering
felixhandte|2 years ago
Whereas Arithmetic encoding is actually practical, extensively used, and a direct analogue to the stick.
sdfsdfsfds|2 years ago