OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-18,20,-8)
FORMULA
For n>0, 1/4 * [(n+1)(n+2)2^n + 10(n+1)2^n + 6*2^n - 4]. - Ralf Stephan, May 08 2004
G.f.: -(20*x^4-52*x^3+40*x^2-8*x-1) / ((x-1)*(2*x-1)^3). - Colin Barker, May 27 2015
MATHEMATICA
Join[{1}, LinearRecurrence[{7, -18, 20, -8}, {15, 47, 131, 343}, 30]] (* Harvey P. Dale, Jul 31 2014 *)
PROG
(PARI) Vec(-(20*x^4-52*x^3+40*x^2-8*x-1)/((x-1)*(2*x-1)^3) + O(x^100)) \\ Colin Barker, May 27 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Floor van Lamoen, Jul 16 2001
STATUS
approved