OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 2 * A051624(n).
G.f.: 2*x*(1+9*x)/(1-x)^3. - Vincenzo Librandi, Jul 10 2012
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Vincenzo Librandi, Jul 10 2012
MATHEMATICA
Table[10*n^2-8*n, {n, 0, 50}] (* Vincenzo Librandi, Jul 10 2012 *)
LinearRecurrence[{3, -3, 1}, {0, 2, 24}, 60] (* Harvey P. Dale, Apr 18 2016 *)
PROG
(Magma) [10*n^2-8*n: n in [0..50]]; // Klaus Brockhaus, Nov 27 2010
(PARI) a(n)=2*n*(5*n-4) \\ Charles R Greathouse IV, Oct 07 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Omar E. Pol, Dec 21 2008
STATUS
approved