OFFSET
1,1
COMMENTS
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Vincenzo Librandi, X^2-AY^2=1, Math Forum, 2007. [Wayback Machine link]
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
G.f.: 38*x*(-37-40*x+x^2)/(x-1)^3.
a(n)= 3*a(n-1) - 3*a(n-2) + a(n-3).
From Amiram Eldar, Mar 23 2023: (Start)
Sum_{n>=1} 1/a(n) = (1 - cot(Pi/sqrt(38))*Pi/sqrt(37))/76.
Sum_{n>=1} (-1)^(n+1)/a(n) = (cosec(Pi/sqrt(37))*Pi/sqrt(38) - 1)/76. (End)
From Elmo R. Oliveira, Jan 16 20254: (Start)
E.g.f.: 38*(exp(x)*(38*x^2 + 38*x - 1) + 1).
a(n) = 38*A158596(n). (End)
MATHEMATICA
Table[38 (38 n^2 - 1), {n, 40}] (* or *) LinearRecurrence[{3, -3, 1}, {1406, 5738, 12958}, 40] (* Harvey P. Dale, Jan 09 2012 *)
CoefficientList[Series[38 (- 37 - 40 x + x^2) / (x - 1)^3, {x, 0, 40}], x] (* Vincenzo Librandi, Sep 11 2013 *)
PROG
(Magma) [38*(38*n^2-1): n in [0..40]]; // Vincenzo Librandi, Sep 11 2013
(PARI) a(n)=38*(38*n^2-1) \\ Charles R Greathouse IV, Jun 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vincenzo Librandi, Mar 26 2009
EXTENSIONS
Comment rewritten and formula replaced by R. J. Mathar, Oct 22 2009
STATUS
approved