English

The Encoding of Natural Numbers as Nested Parentheses Strings with Associated Probability Distributions

Discrete Mathematics 2012-11-16 v1 Combinatorics

Abstract

We provide an efficient encoding of the natural numbers {0,1,2,3,...} as strings of nested parentheses {(),(()),(()()),((())),...}, or considered inversely, an efficient enumeration of such strings. The technique is based on the recursive definition of the Catalan numbers. The probability distributions arising from this encoding are explored. Applications of this encoding to prefix-free data encoding and recursive function theory are briefly considered.

Cite

@article{arxiv.1211.3428,
  title  = {The Encoding of Natural Numbers as Nested Parentheses Strings with Associated Probability Distributions},
  author = {R. D. Ogden},
  journal= {arXiv preprint arXiv:1211.3428},
  year   = {2012}
}
R2 v1 2026-06-21T22:38:34.052Z