Elias delta code is a universal code encoding the positive integers developed by Peter Elias. To code a number:
An equivalent way to express the same process:
The code begins:
To decode an Elias delta-coded integer:
Example:
This code can be generalized to zero or negative integers in the same ways described in Elias gamma coding.
Read article at Wikipedia