OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..500
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
G.f.: (1 - 5*x + 19*x^2 + 9*x^3)/(1-x)^4. - Jaume Oliver Lafont, Aug 30 2009
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) with a(0)=1, a(1)=-1, a(2)=9, a(3)=55. - Harvey P. Dale, Nov 30 2011
E.g.f.: (1 - 2*x + 6*x^2 + 4*x^3)*exp(x). - G. C. Greubel, Mar 29 2021
MAPLE
MATHEMATICA
Array[4*#^3-6*#^2+1&, 50, 0] (* Vladimir Joseph Stephan Orlovsky, Nov 03 2009 *)
LinearRecurrence[{4, -6, 4, -1}, {1, -1, 9, 55}, 50] (* Harvey P. Dale, Nov 30 2011 *)
PROG
(PARI) a(n)=4*n^3-6*n^2+1 \\ Charles R Greathouse IV, Oct 07 2015
(Magma) [4*n^3 -6*n^2 +1: n in [0..50]]; // G. C. Greubel, Mar 29 2021
(Sage) [4*n^3 -6*n^2 +1 for n in (0..50)] # G. C. Greubel, Mar 29 2021
(Python)
def A141530(n): return (m:=(n<<1)-1)*(n*(m-1)-1) # Chai Wah Wu, Mar 11 2024
CROSSREFS
KEYWORD
sign,less,easy
AUTHOR
Paul Curtz, Aug 12 2008
EXTENSIONS
Corrected, completed and edited, following an observation from Vincenzo Librandi, by M. F. Hasler, Feb 12 2009
Further edited by N. J. A. Sloane, Feb 13 2009
STATUS
approved