OFFSET
1,2
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
S. Butler and R. Graham, Enumerating (multiplex) juggling sequences, arXiv:0801.2597 [math.CO], 2008.
Index entries for linear recurrences with constant coefficients, signature (4,-3,-1).
FORMULA
G.f.: (x-2*x^2+x^3)/(1-4*x+3*x^2+x^3).
a(1)=1, a(2)=2, a(3)=6, a(n) = 4*a(n-1)-3*a(n-2)-a(n-3). - Harvey P. Dale, Sep 17 2013
MATHEMATICA
Rest[CoefficientList[Series[(x-2x^2+x^3)/(1-4x+3x^2+x^3), {x, 0, 40}], x]] (* or *) LinearRecurrence[{4, -3, -1}, {1, 2, 6}, 40] (* Harvey P. Dale, Sep 17 2013 *)
PROG
(PARI) Vec((x-2*x^2+x^3)/(1-4*x+3*x^2+x^3) + O(x^30)) \\ Colin Barker, Aug 31 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Steve Butler, Jan 21 2008
STATUS
approved