OFFSET
0,1
COMMENTS
Sixth diagonal of triangle A154685.
Numbers of the form 2*k^2 - 9. - Bruno Berselli, Oct 30 2012
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
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3). - Vincenzo Librandi, Feb 22 2012
G.f.: (23 - 28*x + 9*x^2)/(1-x)^3. - Vincenzo Librandi, Jan 04 2013
From Amiram Eldar, Feb 25 2023: (Start)
Sum_{n>=0} 1/a(n) = 137/126 - cot(3*Pi/sqrt(2))*Pi/(6*sqrt(2)).
Sum_{n>=0} (-1)^n/a(n) = 43/42 - cosec(3*Pi/sqrt(2))*Pi/(6*sqrt(2)). (End)
MATHEMATICA
Table[2*n^2 + 16*n + 23, {n, 0, 50}] (* Vladimir Joseph Stephan Orlovsky, Feb 03 2012 *)
LinearRecurrence[{3, -3, 1}, {23, 41, 63}, 50] (* Vincenzo Librandi, Feb 22 2012 *)
CoefficientList[Series[(23 - 28*x +9*x^2)/(1 -x)^3, {x, 0, 60}], x] (* Vincenzo Librandi, Jan 04 2013 *)
PROG
(PARI) a(n)=2*n^2+16*n+23 \\ Charles R Greathouse IV, Jan 11 2012
(Magma) I:=[23, 41, 63]; [n le 3 select I[n] else 3*Self(n-1)-3*Self(n-2)+1*Self(n-3): n in [1..40]]; // Vincenzo Librandi, Feb 22 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Jan 25 2009
EXTENSIONS
Erroneously duplicated terms removed by Vincenzo Librandi, Feb 22 2012
STATUS
approved