OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,3,2).
FORMULA
MAPLE
A172295 := proc(n) (5*2^n - 5*(-1)^n - 3*n*(-1)^n) / 9 ; end proc: seq(A172295(n), n=0..100) ; # R. J. Mathar, Feb 02 2010
MATHEMATICA
Table[(5*2^n - 5*(-1)^n - 3*n*(-1)^n)/9, {n, 0, 40}] (* Wesley Ivan Hurt, Aug 27 2015 *)
PROG
(Magma) [(5*2^n - 5*(-1)^n - 3*n*(-1)^n) / 9: n in [0..40]]; // Vincenzo Librandi, Aug 05 2011
(PARI) first(m)=vector(m, i, i--; (5*2^i -5*(-1)^i - 3*i*(-1)^i ) / 9) \\ Anders Hellström, Aug 27 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, Jan 30 2010
EXTENSIONS
Definition replaced by explicit formula; g.f. added - R. J. Mathar, Feb 02 2010
STATUS
approved