A057547 A014486-encodings of Catalan mountain ranges with no sea-level valleys, i.e., the rooted plane general trees with root degree = 1.
2, 12, 52, 56, 212, 216, 228, 232, 240, 852, 856, 868, 872, 880, 916, 920, 932, 936, 944, 964, 968, 976, 992, 3412, 3416, 3428, 3432, 3440, 3476, 3480, 3492, 3496, 3504, 3524, 3528, 3536, 3552, 3668, 3672, 3684, 3688, 3696, 3732, 3736, 3748, 3752, 3760
Offset: 0
Links
- Ruud H.G. van Tol, Table of n, a(n) for n = 0..2055
- P. J. Cameron, Some sequences of integers, Discrete Math., 75 (1989), 89-102.
- P. J. Cameron, Some sequences of integers, in "Graph Theory and Combinatorics 1988", ed. B. Bollobas, Annals of Discrete Math., 43 (1989), 89-102.
- Index entries for encodings of plane rooted trees
Programs
-
Maple
alltrees2singletrunked := n -> pars2binexp([binexp2pars(n)]); # Just surround with extra parentheses.
-
PARI
a_rows(N) = my(a=Vec([[2]], N)); for(r=1, N-1, my(b=a[r], c=List()); foreach(b, t, for(i=1, valuation(t, 2), listput(~c, (t<<2)+(2<Ruud H.G. van Tol, May 25 2024
Comments