OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
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).
G.f.: x*(1+2*x+3*x^2) / ( (x-1)*(7*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Dec 19 2011
a(n) = (11*7^(n+1)+(7-(-1)^n)*(25+8*i^(n(n+1)))-275)/400 where i=sqrt(-1). - Bruno Berselli, Dec 19 2011
MATHEMATICA
With[{c=PadLeft[{}, 24, {1, 2, 3, 0}]}, Table[FromDigits[Take[c, n], 7], {n, 20}]] (* or *) LinearRecurrence[{7, 0, 0, 1, -7}, {1, 9, 66, 462, 3235}, 20] (* Harvey P. Dale, Oct 02 2011 *)
PROG
(Maxima) makelist((11*7^(n+1)+(7-(-1)^n)*(25+8*%i^(n*(n+1)))-275)/400, n, 1, 19); /* Bruno Berselli, Dec 19 2011 */
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved