OFFSET
1,2
COMMENTS
REFERENCES
M. Cerasoli, F. Eugeni and M. Protasi, Elementi di Matematica Discreta, Bologna 1988
Emanuele Munarini and Norma Zagaglia Salvi, Matematica Discreta,UTET, CittaStudiEdizioni, Milano 1997
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1, 0, 0, 1, -1).
FORMULA
For n > 0, a(n+5) = a(n) + 8 iff a(n+5)<a(n) : a(n+7) = a(n) + 8, iff a(n+7)<a(n): a(n+4k) = a(n) + 4k with k >= 1.
a(n)= a(n-1) + a(n-4) - a(n-5), n>=12. - R. J. Mathar, Apr 22 2010
G.f.: x^2*(4-3*x+7*x^2-3*x^3-7*x^4+13*x^5-10*x^6+3*x^9)/(1-x-x^4+x^5). - Philippe Deléham, Dec 02 2016
MATHEMATICA
LinearRecurrence[{1, 0, 0, 1, -1}, {0, 4, 1, 8, 5, 2, 12, 9, 6, 3, 16}, 80] (* Harvey P. Dale, Feb 20 2022 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Mar 12 2006
EXTENSIONS
Corrected (47 replaced by 41) by R. J. Mathar, Apr 22 2010
STATUS
approved