OFFSET
0,2
COMMENTS
First bisection of A007899. - Bruno Berselli, Feb 07 2012
LINKS
Bruno Berselli, 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+x)*(1+40*x+x^2)/(1-x)^3. - Bruno Berselli, Feb 07 2012
E.g.f.: (x*(x+1)*42+2)*e^x-1. - Gopinath A. R., Feb 14 2012
Sum_{n>=0} 1/a(n) = 3/4 + sqrt(21)/84*Pi*coth(Pi/sqrt(21)) = 1.0379904347... - R. J. Mathar, May 07 2024
MATHEMATICA
Join[{1}, 42 Range[39]^2 + 2] (* Bruno Berselli, Feb 07 2012 *)
Join[{1}, LinearRecurrence[{3, -3, 1}, {44, 170, 380}, 50]] (* Vincenzo Librandi, Aug 03 2015 *)
PROG
(Magma) [1] cat [42*n^2+2: n in [1..50]]; // Vincenzo Librandi, Aug 03 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved