OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..2000
Index entries for linear recurrences with constant coefficients, signature (8, -25, 38, -28, 8).
FORMULA
a(n) = n*(n-1)*2^(n-1) + n + 1. - Ralf Stephan, Jan 15 2004
G.f.: (-1 - 4*x^4 + 16*x^3 - 16*x^2 + 6*x)/((x-1)^2*(2*x-1)^3). - Maksym Voznyy (voznyy(AT)mail.ru), Aug 13 2009
MATHEMATICA
Table[n(n-1)2^(n-1)+n+1, {n, 0, 30}] (* or *) LinearRecurrence[{8, -25, 38, -28, 8}, {1, 2, 7, 28, 101}, 30] (* Harvey P. Dale, Jul 29 2021 *)
PROG
(Magma) [n*(n-1)*2^(n-1) + n + 1 : n in [0..30]]; // Vincenzo Librandi, Sep 25 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved