Converts a positive integer to the smallest possible representation in a binary digit representation
Value to encode
Encoded number
Converts a positive integer to the smallest possible representation in a binary digit representation