OFFSET
1,2
COMMENTS
Also the number of bits needed to write the universal code for an Elias omega coding. This seems to differ (by 1 bit) from the Elias omega coding used in A147814 and A147764. - Charles R Greathouse IV, Mar 26 2012
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Lloyd Allison, Integer Distribution.
Wikipedia, Elias omega coding
EXAMPLE
Code words: 1, 010, 011, 000100, 000101, 000110, 000111, ...
PROG
(PARI) a(n) = local(l); if( n<2, n>0, l = length( binary(n)); l + a(l-1))
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michael Somos, Jun 19 2002
STATUS
approved