OFFSET
0,2
COMMENTS
A hex tree is a rooted tree where each vertex has 0, 1, or 2 children and, when only one child is present, it is either a left child, or a middle child, or a right child (name due to an obvious bijection with certain tree-like polyhexes; see the Harary-Read reference).
LINKS
Frank Harary and Ronald C. Read, The enumeration of tree-like polyhexes, Proc. Edinburgh Math. Soc. (2) 17 (1970), 1-13.
Index entries for linear recurrences with constant coefficients, signature (6,-9).
FORMULA
a(n) = A126183(n,0).
a(n) = (n+8)*3^(n-2) for n >= 1; a(0)=1.
G.f.: (1-3z+z^2)/(1-3z)^2.
From Paul Curtz, Mar 27 2022: (Start)
a(n+1) = 3*a(n) + A140429(n), for n >= 0; a(0)=1.
Binomial transform of A172481(n) for n >= 0.
Also, with a different offset, the binomial transform of A045891(n+2) for n >= 0. (End)
From Amiram Eldar, Dec 09 2025: (Start)
Sum_{n>=0} 1/a(n) = 59049*log(3/2) - 6703433/280.
Sum_{n>=0} (-1)^n/a(n) = 4756663/280 - 59049*log(4/3). (End)
MAPLE
1, seq(3^(n-2)*(n+8), n=1..28);
MATHEMATICA
a[n_] := (n+8) * 3^(n-2); a[0] = 1; Array[a, 50, 0] (* Amiram Eldar, Dec 09 2025 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Emeric Deutsch, Dec 19 2006
STATUS
approved
