OFFSET
-1,1
LINKS
G. C. Greubel, Table of n, a(n) for n = -1..1000
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) = a(n-1) + 14*n - 3, with a(-1)=4. - Vincenzo Librandi, Nov 18 2010
From G. C. Greubel, Oct 29 2016: (Start)
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).
G.f.: (4 - 11*x + 21*x^2)/(x * (1 - x)^3).
E.g.f.: 4/x + (1 + 11*x + 7*x^2)*exp(x). (End)
MATHEMATICA
Table[7n^2+4n+1, {n, -1, 50}] (* Harvey P. Dale, Mar 26 2011 *)
LinearRecurrence[{3, -3, 1}, {4, 1, 12}, 25] (* G. C. Greubel, Oct 29 2016 *)
PROG
(PARI) a(n)=7*n^2+4*n+1 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Mar 04 2008
STATUS
approved