OFFSET
0,4
COMMENTS
a(n) is the number of Markov equivalence classes whose skeleton is the caterpillar graph on n nodes. See Corollary 4.4 in the paper by A. Radhakrishnan et al. below.
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
A. Radhakrishnan, L. Solus, and C. Uhler. Counting Markov equivalence classes for DAG models on trees, arXiv:1706.06091 [math.CO], 2017; Discrete Applied Mathematics 244 (2018): 170-185.
Index entries for linear recurrences with constant coefficients, signature (0,4,0,-2,0,-2).
FORMULA
From Colin Barker, Sep 03 2018: (Start)
G.f.: x*(1 - x)*(1 + x)*(1 + x - x^2) / (1 - 4*x^2 + 2*x^4 + 2*x^6).
a(n) = 4*a(n-2) - 2*a(n-4) - 2*a(n-6) for n>5.
(End)
MATHEMATICA
LinearRecurrence[{0, 4, 0, -2, 0, -2}, {0, 1, 1, 2, 3, 7}, 50] (* Jean-François Alcover, Sep 17 2018 *)
nxt[{n_, a_, b_, c_, d_, e_}]:={n+1, b, c, d, e, If[OddQ[n], d+e, 3d-a+b]}; NestList[nxt, {4, 0, 1, 1, 2, 3}, 40][[All, 2]] (* Harvey P. Dale, Dec 25 2022 *)
PROG
(PARI) a(n) = if (n > 4, if (n%2, 3*a(n-2) + a(n-4) - a(n-5), a(n-1) + a(n-2)), if (n > 1, n-1, n)); \\ Michel Marcus, Sep 03 2018
(PARI) concat(0, Vec(x*(1 - x)*(1 + x)*(1 + x - x^2) / (1 - 4*x^2 + 2*x^4 + 2*x^6) + O(x^40))) \\ Colin Barker, Sep 03 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Liam Solus, Aug 26 2018
STATUS
approved