OFFSET
0,1
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,0,-1).
FORMULA
a(n) = a(n-1) + a(n-2) - a(n-4), with a(0)=7, a(1)=11, a(2)=13, a(3)=17.
G.f.: (7 +4*x -5*x^2 -7*x^3) / ((1-x)*(1-x^2-x^3)). - Colin Barker, Mar 20 2016
a(n) = a(n-2) + a(n-3) - 1. - Greg Dresden, May 18 2020
MATHEMATICA
a[0]=7; a[1]=11; a[2]=13; a[3]=17; a[n_]:= a[n]= a[n-1] +a[n-2] -a[n-4]; Table[a[n], {n, 0, 50}]
PROG
(PARI) Vec((7+4*x-5*x^2-7*x^3)/((1-x)*(1-x^2-x^3)) + O(x^50)) \\ Colin Barker, Mar 20 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Mar 21 2005
EXTENSIONS
New name from Colin Barker, Mar 20 2016
STATUS
approved