OFFSET
0,2
LINKS
Index entries for linear recurrences with constant coefficients, signature (11, -25, 11, -1).
FORMULA
G.f.: (1-25x^2+22x^3-3x^4)/(1-11x+25x^2-11x^3+x^4).
a(0)=1, a(1)=11, a(2)=71, a(3)=539, a(4)=4271, a(n)=11*a(n-1)-25*a(n-2)+ 11*a(n-3)-a(n-4). - Harvey P. Dale, Jun 15 2011
MATHEMATICA
Join[{1}, LinearRecurrence[{11, -25, 11, -1}, {11, 71, 539, 4271}, 40]] (* Harvey P. Dale, Jun 15 2011 *)
(* Alternative: *)
CoefficientList[ Series[ (1-25x^2+22x^3-3x^4)/ (1-11x+ 25x^2- 11x^3+x^4), {x, 0, 40}], x] (* Harvey P. Dale, Jun 15 2011 *)
PROG
(PARI) a(n)=if(n, ([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; -1, 11, -25, 11]^(n-1)*[11; 71; 539; 4271])[1, 1], 1) \\ Charles R Greathouse IV, May 29 2026
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Ralf Stephan, Feb 26 2005
STATUS
approved
