A085184 Sequence A085183 shown in base 4. Quaternary code for binary trees.
0, 1, 2, 11, 12, 21, 22, 30, 111, 112, 121, 122, 130, 211, 212, 221, 222, 230, 301, 302, 310, 320, 1111, 1112, 1121, 1122, 1130, 1211, 1212, 1221, 1222, 1230, 1301, 1302, 1310, 1320, 2111, 2112, 2121, 2122, 2130, 2211, 2212, 2221, 2222, 2230, 2301, 2302
Offset: 1
Examples
For the first eleven terms the following binary trees are constructed with method A. With method B we would get their mirror images, although this doesn't hold in general (e.g. for terms like 301-320). ........................................................\......./......\... .....................\......./.......\......./...........\......\....../... ..*......\....../.....\......\......./....../.....\/......\......\.....\... ..0......1......2.....11.....12.....21.....22.....30....111....112....121..
Links
- R. P. Stanley, Exercises on Catalan and Related Numbers
Comments