OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..100
Index entries for linear recurrences with constant coefficients, signature (7,0,0,1,-7).
FORMULA
a(n) = 7*a(n-1) + a(n-4) - 7*a(n-5). - Charles R Greathouse IV, Jan 16 2011
G.f.: x*(3*x^2 + x + 2)/(7*x^5 - x^4 - 7*x + 1). - Harvey P. Dale, Sep 18 2011
a(n) = (63*7^n + (7-(-1)^n)*(25+2*i^(n*(n+1))) - 225)/200, where i=sqrt(-1). - Bruno Berselli, Sep 19 2011
MATHEMATICA
LinearRecurrence[{7, 0, 0, 1, -7}, {2, 15, 108, 756, 5294}, 30] (* Harvey P. Dale, Sep 18 2011 *)
PROG
(Magma) I:=[2, 15, 108, 756, 5294]; [n le 5 select I[n] else 7*Self(n-1)+Self(n-4)-7*Self(n-5): n in [1..20]]; // Vincenzo Librandi, Sep 19 2011
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved