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) = 14*n^2 + 10*n.
a(n) = 4*A179986(n). - Bruno Berselli, Oct 13 2011
G.f.: 4*x*(6+x)/(1-x)^3. - Colin Barker, Jan 09 2012
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3); a(0)=0, a(1)=24, a(2)=76. - Harvey P. Dale, Jul 24 2012
MATHEMATICA
Table[2n(7n+5), {n, 0, 50}] (* or *) LinearRecurrence[{3, -3, 1}, {0, 24, 76}, 50] (* Harvey P. Dale, Jul 24 2012 *)
PROG
(Magma) [14*n^2 +10*n: n in [0..50]]; // Vincenzo Librandi, Oct 14 2011
(PARI) a(n)=2*n*(7*n+5) \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, Oct 13 2011
STATUS
approved