Elias delta code is a universal code encoding the positive integers developed by Peter Elias.
To code a number X≥1:
An equivalent way to express the same process:
To represent a number x{\displaystyle x}, Elias delta uses ⌊log2(x)⌋+2⌊log2(⌊log2(x)⌋+1)⌋+1{\displaystyle \lfloor \log _{2}(x)\rfloor +2\lfloor \log _{2}(\lfloor \log _{2}(x)\rfloor +1)\rfloor +1} bits.
The code begins, using γ′{\displaystyle \gamma '} instead of γ{\displaystyle \gamma }: