OFFSET
1,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (5,0,1,-5).
FORMULA
G.f.: x*(2+x^2) / ( (x-1)*(5*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
a(n) = 5*a(n-1)+a(n-3)-5*a(n-4). - Vincenzo Librandi, May 31 2013
MATHEMATICA
CoefficientList[Series[(2 + x^2) / ((x - 1) (5 x - 1) (1 + x + x^2)), {x, 0, 30}], x] (* Vincenzo Librandi, May 31 2013 *)
PROG
(Magma) I:=[2, 10, 51, 257]; [n le 4 select I[n] else 5*Self(n-1)+Self(n-3)-5*Self(n-4): n in [1..30]]; // Vincenzo Librandi, May 31 2013
CROSSREFS
KEYWORD
nonn,base
AUTHOR
STATUS
approved