OFFSET
0,2
LINKS
FORMULA
a(n) = 2*A001106(n) = 7*n^2 - 5*n = n*(7*n-5).
a(n) = 14*n + a(n-1) - 12, with a(0)=0. - Vincenzo Librandi, Aug 03 2010
G.f.: 2*x*(1 + 6*x)/(1 - x)^3. - Philippe Deléham, Apr 03 2013
MATHEMATICA
s=0; lst={s}; Do[s+=n; AppendTo[lst, s], {n, 2, 6!, 14}]; lst (* Vladimir Joseph Stephan Orlovsky, Apr 02 2009 *)
2*PolygonalNumber[9, Range[0, 40]] (* or *) LinearRecurrence[{3, -3, 1}, {0, 2, 18}, 50] (* Harvey P. Dale, Feb 08 2024 *)
PROG
(PARI) a(n)=n*(7*n-5) \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Omar E. Pol, May 15 2008
STATUS
approved