OFFSET
1,2
COMMENTS
LINKS
Indranil Ghosh, Table of n, a(n) for n = 1..10000
Khalid Sayood (Editor), Lossless Compression Handbook, Chapter 3 - Universal Codes, p. 59, section 3.6.
Wikipedia, Elias omega coding
PROG
(Python)
def E(n):
....s=""
....if n==1:
........return "0"
....else:
........b=(bin(n)[2:])
........s+=E(len(b)-1)+b
....return s
def elias_omega(n):
....return E(n)[1:]+"0"
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Indranil Ghosh, Jan 17 2017
STATUS
approved