OFFSET
1,1
COMMENTS
2*(fifth subdiagonal of triangle A144562).
Sequence gives values x of solutions (x, y) to the Diophantine equation x^3+28*x^2 = y^2. For a more comprehensive list of solutions see A155135.
For n >= 3, a(n - 1) is the number of checkmate positions with white queen and white king against black king on an n X n board. Reason: The black king can only be on the edge. There are 4*(4*n + 1) checkmate positions where the black king is in the corner, 4*(2*n + 4) checkmate positions where the black king is immediately adjacent to the corner square, and there are 4*(n - 4)*(n + 2) checkmate positions where the black king is on another edge square. That's a total of 4*n^2 + 16*n - 12 = a(n - 1) checkmate positions. - Felix Huber, Oct 29 2023
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 4*A028881(n+3).
G.f.: 4*(3 - x)*(3 - 2*x)/(1-x)^3.
a(n)= 3*a(n-1) - 3*a(n-2) + a(n-3).
E.g.f.: 4*(-2 + (2 + 7*x + x^2)*exp(x)). - G. C. Greubel, Aug 23 2016
From Amiram Eldar, Mar 02 2023: (Start)
Sum_{n>=1} 1/a(n) = 1/56 - cot(sqrt(7)*Pi)*Pi/(8*sqrt(7)).
Sum_{n>=1} (-1)^(n+1)/a(n) = 31/168 - cosec(sqrt(7)*Pi)*Pi/(8*sqrt(7)). (End)
MATHEMATICA
LinearRecurrence[{3, -3, 1}, {36, 72, 116}, 50] (* Vincenzo Librandi, Feb 25 2012 *)
PROG
(Magma) [ 4*(n+3)^2-28: n in [1..45] ];
(PARI) a(n)=4*n*(n+6)+8 \\ Charles R Greathouse IV, Dec 28 2011
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Vincenzo Librandi, Dec 30 2008
EXTENSIONS
Edited and extended by Klaus Brockhaus, Jan 21 2009
STATUS
approved