|
Search: id:A010097
|
|
|
| A010097 |
|
Prefix (or Levenshtein) codes for natural numbers. |
|
+0 1
|
|
| 0, 2, 12, 13, 112, 113, 114, 115, 232, 233, 234, 235, 236, 237, 238, 239, 3840, 3841, 3842, 3843, 3844, 3845, 3846, 3847, 3848, 3849, 3850, 3851, 3852, 3853, 3854, 3855, 7712, 7713, 7714, 7715
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
REFERENCES
|
R. E. Krichevsky, Szhatie i poisk informatsii (Compressing and searching for information), Moscow, 1988, ISBN 5-256-00325-9.
|
|
FORMULA
|
The code for n is found as follows: from right to left, the truncated (without the leading 1) binary representations of n, int(log2(n)), int(log2(int(log2(n)))), etc., are written as long as they consist of at least one bit; then we write a 0 followed by log*(n) 1's.
|
|
CROSSREFS
|
Sequence in context: A032931 A072483 A081539 this_sequence A103761 A078755 A086285
Adjacent sequences: A010094 A010095 A010096 this_sequence A010098 A010099 A010100
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Leonid Broukhis (leob(AT)mailcom.com)
|
|
|
Search completed in 0.002 seconds
|