OFFSET
0,2
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
R. J. Mathar, Fairy chess leaper minimum moves on the infinite chessboard, (2018).
Index entries for linear recurrences with constant coefficients, signature (3,-3,1).
FORMULA
a(n) = 34*n^2 + 30*n + 9 for n >= 6.
From Colin Barker, Jan 05 2018: (Start)
G.f.: (1 + x)*(1 + 5*x + 12*x^2 + 20*x^3 + 28*x^4 - 20*x^5 - 24*x^6 + 12*x^8) / (1 - x)^3.
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n>9. (End)
MATHEMATICA
LinearRecurrence[{3, -3, 1}, {1, 9, 41, 129, 321, 625, 997, 1413, 1885, 2425}, 50] (* Paolo Xausa, Mar 17 2024 *)
PROG
(PARI) Vec((1 + x)*(1 + 5*x + 12*x^2 + 20*x^3 + 28*x^4 - 20*x^5 - 24*x^6 + 12*x^8) / (1 - x)^3 + O(x^40)) \\ Colin Barker, Jan 07 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. J. Mathar, Jan 05 2018
STATUS
approved