OFFSET
0,2
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..10000
Index entries for linear recurrences with constant coefficients, signature (3, -3, 1).
FORMULA
a(n) = 2*A135703(n). - Bruno Berselli, Oct 13 2011
From Colin Barker, Apr 09 2012: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
G.f.: 2*x*(5+9*x)/(1-x)^3. (End)
MATHEMATICA
Table[14n^2-4n, {n, 0, 40}] (* or *) LinearRecurrence[{3, -3, 1}, {0, 10, 48}, 50] (* Harvey P. Dale, Sep 05 2012 *)
PROG
(Magma) [14*n^2 - 4*n: n in [0..50]]; // Vincenzo Librandi, Oct 14 2011
(PARI) a(n)=14*n^2-4*n \\ Charles R Greathouse IV, Apr 10 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Oct 13 2011
EXTENSIONS
Corrected by Vincenzo Librandi, Oct 14 2011
STATUS
approved