OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Jonathan M. Borwein, Dirk Nuyens, Armin Straub, and James Wan, Some Arithmetic Properties of Short Random Walk Integrals, May 2011.
Pakawut Jiradilok and Elchanan Mossel, Gaussian Broadcast on Grids, arXiv:2402.11990 [cs.IT], 2024. See p. 27.
Index entries for linear recurrences with constant coefficients, signature (4,-6,4,-1).
FORMULA
a(n) = 6*n^3 - 9*n^2 + 4*n. - Peter Luschny, May 27 2017
G.f.: x*(1+16*x+19*x^2)/(1-x)^4. - Vincenzo Librandi, May 28 2017
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4). - Vincenzo Librandi, May 28 2017
MAPLE
A169711 := proc(n)
W(n, 6) ;
end proc:
a := n -> 6*n^3 - 9*n^2 + 4*n: seq(a(n), n=1..33); # Peter Luschny, May 27 2017
MATHEMATICA
CoefficientList[Series[(1 + 16 x + 19 x^2) / (1 - x)^4, {x, 0, 50}], x] (* or *) Table[6 n^3 - 9 n^2 + 4 n, {n, 1, 40}] (* Vincenzo Librandi, May 28 2017 *)
LinearRecurrence[{4, -6, 4, -1}, {1, 20, 93, 256}, 40] (* Harvey P. Dale, Feb 27 2023 *)
PROG
(Magma) [6*n^3-9*n^2+4*n: n in [1..40]]; // Vincenzo Librandi, May 28 2017
(PARI) a(n)=6*n^3-9*n^2+4*n \\ Charles R Greathouse IV, Oct 18 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Apr 17 2010
STATUS
approved