OFFSET
0,2
REFERENCES
D. E. Knuth, Art of Computer Programming, Vol. 3, Sect. 5.4.2, Eq. (25).
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,1,2,1).
FORMULA
3 * [Fibonacci(n+2)/2] + 1. - Ralf Stephan, Dec 02 2004
a(n) = (A099837(n+2)+A022086(n+2))/2. G.f. ( -1-4*x-3*x^2-x^3 ) / ( (1+x+x^2)*(x^2+x-1) ). - R. J. Mathar, Mar 21 2011
MAPLE
MATHEMATICA
LinearRecurrence[{0, 1, 2, 1}, {1, 4, 4, 7}, 36] (* Jean-François Alcover, Apr 01 2020 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved