OFFSET
2,2
COMMENTS
sqrt(3) is the second closest (Euclidean) distance for a pair of points in a triangular grid. For illustration see A244500.
LINKS
Heinrich Ludwig, Table of n, a(n) for n = 2..1000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
a(n) = 1/48*n^6 + 1/16*n^5 - 13/16*n^4 + 61/48*n^3 + 247/24*n^2 - 293/6*n + 6 for n >= 3.
G.f.: -x^2*(6*x^7 - 17*x^6 + 14*x^5 - 6*x^4 - 4*x^3 + 20*x^2 + x + 1) / (x-1)^7. - Colin Barker, Jun 29 2014
MATHEMATICA
CoefficientList[Series[-(6*x^7-17*x^6+14*x^5-6*x^4-4*x^3+20*x^2+x+1) / (x-1)^7, {x, 0, 20}], x] (* Vaclav Kotesovec, Jul 03 2014 after Colin Barker *)
PROG
(PARI) Vec(-x^2*(6*x^7-17*x^6+14*x^5-6*x^4-4*x^3+20*x^2+x+1)/(x-1)^7 + O(x^100)) \\ Colin Barker, Jun 29 2014
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Heinrich Ludwig, Jun 29 2014
STATUS
approved