OFFSET
0,5
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,1,1,2).
FORMULA
From R. J. Mathar, Jun 12 2008: (Start)
O.g.f: (-1+x+x^2+x^3)/((2*x-1)(1+x)(1+x^2)).
a(n) = 2^n/15+(-1)^n/3+A112030(n)/5. (End)
MATHEMATICA
LinearRecurrence[{1, 1, 1, 2}, {1, 0, 0, 0}, 50] (* Paolo Xausa, Jun 04 2026 *)
PROG
(PARI) a(n)=([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; 2, 1, 1, 1]^n*[1; 0; 0; 0])[1, 1] \\ Charles R Greathouse IV, Jun 03 2026
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, May 22 2008
EXTENSIONS
More terms from R. J. Mathar, Jun 12 2008
More terms from Paolo Xausa, Jun 04 2026
STATUS
approved
