To code a non-negative integer N in Even–Rodeh coding:
To decode an Even–Rodeh-coded integer:
Even, Shimon; Rodeh, Michael (April 1978). "Economical encoding of commas between strings". Communications of the ACM. 21 (4): 315–317. doi:10.1145/359460.359480. /wiki/Shimon_Even ↩