OFFSET
0,3
LINKS
Nickolas Hein, Jia Huang, Nonassociativity measurements of some binary operations, arXiv:1807.04623 [math.CO], 2018. See Proposition 2.10 p. 9 (and line 2, page 6 for the x factor in the g.f.)
Index entries for linear recurrences with constant coefficients, signature (6,-11,6).
FORMULA
a(n) = 1 + 5*3^(n-3) - 2^(n-3), n>=3.
a(n) = 6*a(n-1) - 11*a(n-2) + 6*a(n-3), n>=6.
MATHEMATICA
CoefficientList[Series[1 + (1/(1 - x) + 1/(1 - 3 x)) x/2 + (1/(1 - x) - 8/(1 - 2 x) + 9/(1 - 3 x)) x^5/2, {x, 0, 30}], x] (* or *)
LinearRecurrence[{6, -11, 6}, {1, 1, 2, 5, 14, 42}, 31] (* Michael De Vlieger, Jul 13 2018 *)
PROG
(PARI) Vec(1 + (1/(1-x) + 1/(1-3*x))*x/2 + (1/(1-x) - 8/(1-2*x) + 9/(1-3*x))*x^5/2 + O(x^40)) \\ Michel Marcus, Jul 13 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Michel Marcus, Jul 13 2018
STATUS
approved