OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..2500
L. Hogben, Choice and Chance by Cardpack and Chessboard, Vol. 1, Max Parrish and Co, London, 1950, p. 36.
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 5*n + 14*binomial(n,2).
From R. J. Mathar, Apr 21 2008: (Start)
O.g.f. x*(5+9*x)/(1-x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). (End)
a(n) = a(n-1) + 14*n - 9 (with a(0)=0). - Vincenzo Librandi, Nov 24 2010
E.g.f.: x*(5 + 7*x)*exp(x). - G. C. Greubel, Oct 29 2016
MATHEMATICA
Array[ #*(7*# - 2) &, 50, 0] (* Zerinvary Lajos, Jul 10 2009 *)
PROG
(PARI) a(n)=n*(7*n-2) \\ Charles R Greathouse IV, Oct 07 2015
(Magma) [n*(7*n-2): n in [0..50]]; // G. C. Greubel, Jul 04 2019
(Sage) [n*(7*n-2) for n in (0..50)] # G. C. Greubel, Jul 04 2019
(GAP) List([0..50], n-> n*(7*n-2)) # G. C. Greubel, Jul 04 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Mar 04 2008
STATUS
approved