A372593 Irregular triangle read by rows, where the n-th row gives the number of steps in the hydra game when the initial hydra is each of the A000108(n) ordered trees with n edges (ordered by lexicographic order of their corresponding Dyck words as in A063171) and new heads are grown to the left.
0, 1, 2, 3, 3, 4, 5, 6, 9, 4, 5, 6, 7, 10, 7, 8, 9, 10, 14, 18, 19, 25, 49, 5, 6, 7, 8, 11, 8, 9, 10, 11, 15, 19, 20, 26, 50, 9, 10, 11, 12, 16, 12, 13, 14, 15, 20, 25, 26, 33, 60, 30, 31, 32, 33, 41, 49, 50, 60, 110, 175, 176, 195, 330, 1230
Offset: 0
Examples
Triangle begins: 0; 1; 2, 3; 3, 4, 5, 6, 9; 4, 5, 6, 7, 10, 7, 8, 9, 10, 14, 18, 19, 25, 49; ... For n = 4, k = 10, the hydra game for the initial tree corresponding to the bracket string "(()(()))" (the 10th Dyck word on 4 pairs of brackets) is shown below. The root is denoted by "R", internal nodes by "o", the head to be chopped off by "X", other heads by "H". A number connected to the root represents that number of leaves, each connected to the root. Numbers below the arrows show how many steps that are required to go from the tree on the left to the tree on the right. . X / H o H H X H X X |/ \|/ \| \ o o H o o X | | \| | | R => R => H--R => 5--R => 9--R => R A(4,10) = 1 + 1 + 1 + 1 + 10 = 14.
Formula
A(n,k) = A(n-1,k)+1 if 1 <= k <= A000108(n-1).
Comments