OFFSET
0,3
COMMENTS
Limiting ratio is: 1.38028, see A086106.
REFERENCES
R. Pallu de la Barriere, Optimal Control Theory,Dover Publications, New York,1967,pages 339-344
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-1,0,1,-1)
FORMULA
a(n)= 2*a(n-1) -a(n-2) +a(n-4) -a(n-5). - R. J. Mathar, Dec 02 2009
MATHEMATICA
Clear[n, m, v, M, a, b, c, K]
M = {{0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}, {1, 0, 0, 1}}
v[0] = {0, 0, 0, 1};
v[n_] := v[n] = M.v[n - 1] + {1, 1, 1, 1}
a = Table[v[n][[1]], {n, 0, 30}]
LinearRecurrence[{2, -1, 0, 1, -1}, {0, 1, 2, 4, 5}, 50] (* G. C. Greubel, Jul 28 2016 *)
PROG
(PARI) a(n)=([0, 1, 0, 0, 0; 0, 0, 1, 0, 0; 0, 0, 0, 1, 0; 0, 0, 0, 0, 1; -1, 1, 0, -1, 2]^n*[0; 1; 2; 4; 5])[1, 1] \\ Charles R Greathouse IV, Jul 29 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula and Gary W. Adamson, Dec 01 2009
STATUS
approved