OFFSET
0,3
COMMENTS
LINKS
Index entries for linear recurrences with constant coefficients, signature (6,-9,5,-1).
FORMULA
a(n) = A012855(n+3) - 1. a(n) = 6*a(n-1) - 9*a(n-2) + 5*a(n-3) - a(n-4). - R. J. Mathar, Oct 18 2010
G.f.: x/(1 - 6*x + 9*x^2 - 5*x^3 + x^4). - Colin Barker, Feb 03 2012
From Jianing Song, Feb 04 2019: (Start)
a(n+3) = 5*a(n+2) - 4*a(n+1) + a(n) + 1.
EXAMPLE
PROG
(PARI) a(n) = my(v=vector(n+1), u=[0, 1, 6, 27]); for(k=1, n+1, v[k]=if(k<=4, u[k], 5*v[k-1] - 4*v[k-2] + v[k-3] + 1)); v[n+1] \\ Jianing Song, Feb 04 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Carmine Suriano, Apr 18 2010
EXTENSIONS
New name, more terms and a(0) = 0 prepended by Jianing Song, Feb 04 2019
STATUS
approved