cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A057547 A014486-encodings of Catalan mountain ranges with no sea-level valleys, i.e., the rooted plane general trees with root degree = 1.

Original entry on oeis.org

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

Views

Author

Antti Karttunen Sep 07 2000

Keywords

Comments

This one-to-one correspondence between all rooted plane trees and one node larger, root degree = 1 trees illustrates the fact that INVERT(A000108) = LEFT(A000108). (Catalan numbers shift left under Cameron's A transformation.)
From Ruud H.G. van Tol, May 13 2024: (Start)
Sequence on a lattice:
Tree Paths Decimal Count
|_ 10 2 1
|. 1100 12 1
||._ 110100 -111000 52,56 2
|||_._ 11010100 -11110000 212-240 5
|||_|. 1101010100-1111100000 852-992 14
... (End)

Crossrefs

Double-trunked trees: A057517. Cf. also A057548, A057549.

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

Formula

a(n) = A014486(A057548(n)) and also from n > 0 onward = A079946(A014486(n)).
a(n) = alltrees2singletrunked(A014486[n]) (see Maple code below and in A057501).