OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,6,-4,-8).
FORMULA
a(n) = 2^n*(n/3 + 11/18) + (-1)^n* (2^(n-1) - 1/9).
a(2n) - 2a(2n-1) = A002450(n+1).
a(n) + a(n+1) = A134353(n+1). - R. J. Mathar, Nov 10 2013
MATHEMATICA
max = 40; j[n_] := (2^n-(-1)^n)/3; jj = Table[{j[n], -j[n]}, {n, 0, max+2, 2}] // Flatten; a[0] = 1; a[n_] := a[n] = 2*a[n-1] + jj[[n+3]]; Table[a[n], {n, 0, max}] (* Jean-François Alcover, Sep 30 2013 *)
PROG
(Magma) [2^n*(n/3+11/18) + (-1)^n* (2^(n-1)-1/9): n in [0..40]]; // Vincenzo Librandi, Aug 08 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Jul 14 2008
EXTENSIONS
Better name from R. J. Mathar, Jul 02 2011
Edited by Ralf Stephan, Nov 10 2013
STATUS
approved