OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Milan Janjić, Pascal Matrices and Restricted Words, J. Int. Seq., Vol. 21 (2018), Article 18.5.2.
Index entries for linear recurrences with constant coefficients, signature (6,-12,8).
FORMULA
a(n) = n*2^n*(2*n-1)/2.
G.f.: x*(1+6*x)/(1-2*x)^3.
a(0)=0, a(1)=1, a(2)=12, a(n)=6*a(n-1)-12*a(n-2)+8*a(n-3). - Harvey P. Dale, Dec 13 2015
E.g.f.: exp(2*x)*x*(1 + 4*x). - Stefano Spezia, Oct 09 2022
MATHEMATICA
LinearRecurrence[{6, -12, 8}, {0, 1, 12}, 30] (* Harvey P. Dale, Dec 13 2015 *)
PROG
(Magma) [n*2^n*(2*n-1)/2: n in [0..30] ]; // Vincenzo Librandi, Aug 22 2011
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Jul 24 2003
STATUS
approved