OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: x*(2+5*x)/(1-x)^3.
a(n) = 3*a(n-1) -3*a(n-2) +a(n-3) with a(0)=0, a(1)=2, a(2)=11.
a(n) = A001106(n) + n.
a(n) = A022264(n) - n.
a(n) = A022265(n) - 2*n.
a(n) = A186029(n) - 3*n.
a(n) = A179986(n) - 4*n.
a(n) = A024966(n) - 5*n.
a(n) = A174738(7*n+1).
E.g.f.: (x/2)*(7*x + 4)*exp(x). - G. C. Greubel, Aug 23 2017
MAPLE
seq(n*(7*n-3)/2, n=0..50); # G. C. Greubel, Aug 31 2019
MATHEMATICA
Table[n*(7*n-3)/2, {n, 0, 50}] (* G. C. Greubel, Aug 23 2017 *)
PROG
(PARI) a(n)=n*(7*n-3)/2 \\ Charles R Greathouse IV, Jun 17 2017
(Magma) [n*(7*n-3)/2: n in [0..50]]; // G. C. Greubel, Aug 31 2019
(Sage) [n*(7*n-3)/2 for n in (0..50)] # G. C. Greubel, Aug 31 2019
(GAP) List([0..50], n-> n*(7*n-3)/2); # G. C. Greubel, Aug 31 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Philippe Deléham, Mar 26 2013
STATUS
approved