OFFSET
1,1
LINKS
Index entries for linear recurrences with constant coefficients, signature (5, -8, 4).
FORMULA
a(n) = 3*n * 2^(n-2) - 1 for n>1.
G.f.: x*(2-5*x+8*x^2-6*x^3)/((1-x)*(1-2*x)^2). [Colin Barker, Apr 17 2012]
EXAMPLE
a(7) = 21 * 32 - 1 = 671.
MATHEMATICA
Rest[CoefficientList[Series[x (2-5x+8x^2-6x^3)/((1-x)(1-2x)^2), {x, 0, 30}], x]] (* Harvey P. Dale, Feb 18 2013 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Nikolay S. Maltchev (nikolay(AT)maltchev.com), Sep 25 2002
STATUS
approved