OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,1,3,1,0,-1).
FORMULA
G.f.: (1 + 4*x + 7*x^2 + 9*x^3 + 9*x^4 + 6*x^5 + 3*x^6 - 2*x^7) / ((1 + x + x^2)*(1 - x - x^2 - x^3 + x^4)). [Corrected by Colin Barker, Feb 04 2018]
a(n) = a(n-2) + 3*a(n-3) + a(n-4) - a(n-6) for n>7. - Colin Barker, Feb 04 2018
MATHEMATICA
LinearRecurrence[{0, 1, 3, 1, 0, -1}, {1, 4, 8, 16, 30, 50, 88, 150}, 40] (* Harvey P. Dale, May 03 2019 *)
PROG
(Magma)
R<x> := RationalFunctionField(Integers());
PSR25 := PowerSeriesRing(Integers():Precision := 25);
FG<S, T> := FreeGroup(2);
TG := quo<FG | S^3, T^3, (S*T)^4 >;
f, A :=IsAutomaticGroup(TG);
gf := GrowthFunction(A);
R!gf;
Coefficients(PSR25!gf);
(PARI) Vec((1 + 4*x + 7*x^2 + 9*x^3 + 9*x^4 + 6*x^5 + 3*x^6 - 2*x^7) / ((1 + x + x^2)*(1 - x - x^2 - x^3 + x^4)) + O(x^40)) \\ Colin Barker, Feb 04 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
John Cannon and N. J. A. Sloane, Feb 04 2018
STATUS
approved