OFFSET
0,3
COMMENTS
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-2,-1,1).
FORMULA
G.f.: x*(x^2-4*x-1)/((x-1)^2*(x^2+x-1)). First differences are in A192750. - Colin Barker, Nov 13 2012
a(n) = 5*Fibonacci(n+3) - (4*n+10). - N. J. A. Sloane, Dec 15 2015
MATHEMATICA
(See A192750.)
CoefficientList[Series[x (x^2-4x-1)/((x-1)^2(x^2+x-1)), {x, 0, 40}], x] (* or *) LinearRecurrence[{3, -2, -1, 1}, {0, 1, 7, 18}, 40] (* Harvey P. Dale, Feb 23 2022 *)
PROG
(PARI) a(n)=([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; 1, -1, -2, 3]^n*[0; 1; 7; 18])[1, 1] \\ Charles R Greathouse IV, May 20 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 09 2011
EXTENSIONS
Description corrected by Antti Karttunen, Dec 15 2015
Entry revised by N. J. A. Sloane, Dec 15 2015
STATUS
approved
