OFFSET
0,2
COMMENTS
Hankel transform of A184881.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: (1-10*x+x^2)/(1-x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n >= 3.
a(0)=1, a(n) = a(n-1) - 8*n. - Vincenzo Librandi, Jan 25 2011
Sum_{n>=0} 1/a(n) = -tan(Pi/sqrt(2))*Pi/(4*sqrt(2)). - Amiram Eldar, Feb 03 2026
MATHEMATICA
Table[1-4n-4n^2, {n, 0, 50}] (* or *) LinearRecurrence[{3, -3, 1}, {1, -7, -23}, 50] (* Harvey P. Dale, Feb 21 2014 *)
PROG
(Magma) [1-4*n-4*n^2: n in [0..60]]; // Vincenzo Librandi, Feb 23 2014
(PARI) a(n)=1-4*n-4*n^2 \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Paul Barry, Jan 24 2011
STATUS
approved
