OFFSET
0,2
LINKS
Matthew House, Table of n, a(n) for n = 0..1177
Index entries for linear recurrences with constant coefficients, signature (11,-31,21).
FORMULA
a(0)=1, a(1)=11, a(n) = 10*a(n-1) - 21*a(n-2) + 1. - Vincenzo Librandi, Feb 10 2011
a(n) = (7^(n+2) - 3^(n+3) + 2)/24. - Yahia Kahloune, May 06 2013
a(n) = 11*a(n-1) - 31*a(n-2) + 21*a(n-3). - Matthew House, Jan 13 2017
MAPLE
a:=n->sum((7^(n-j)-3^(n-j))/4, j=0..n): seq(a(n), n=1..19); # Zerinvary Lajos, Jan 15 2007
PROG
(PARI) Vec(1/((1-x)*(1-3*x)*(1-7*x))+O(x^99)) \\ Charles R Greathouse IV, Sep 26 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved