OFFSET
1,2
LINKS
Paolo Xausa, Table of n, a(n) for n = 1..10000
Index entries for linear recurrences with constant coefficients, signature (5,-10,10,-5,1).
FORMULA
a(n) = (3/2)*(27*n^4 - 90*n^3 + 78*n^2 + 11*n - 24), for n > 1.
a(n) = 5*a(n - 1) - 10*a(n - 2) + 10*a(n - 3) - 5*a(n - 4) + a(n - 5) for n > 6.
G.f.: 3*x^2*(11 + 179*x + 150*x^2 - 17*x^3 + x^4)/(1 - x)^5.
E.g.f.: 36 - 3*x + 3*exp(x)*(27*x^4 + 72*x^3 - 3*x^2 + 26*x - 24)/2. - Stefano Spezia, Jun 04 2024
EXAMPLE
Regular hexagonal boards n = 1...4:
. ___
./ \
.\___/
. ___
. ___/ \___
./ \___/ \
.\___/ \___/
./ \___/ \
.\___/ \___/
. \___/
. ___
. ___/ \___
. ___/ \___/ \___
./ \___/ \___/ \
.\___/ \___/ \___/
./ \___/ \___/ \
.\___/ \___/ \___/
./ \___/ \___/ \
.\___/ \___/ \___/
. \___/ \___/
. \___/
. ___
. ___/ \___
. ___/ \___/ \___
. ___/ \___/ \___/ \___
./ \___/ \___/ \___/ \
.\___/ \___/ \___/ \___/
./ \___/ \___/ \___/ \
.\___/ \___/ \___/ \___/
./ \___/ \___/ \___/ \
.\___/ \___/ \___/ \___/
./ \___/ \___/ \___/ \
.\___/ \___/ \___/ \___/
. \___/ \___/ \___/
. \___/ \___/
. \___/
For n = 2 the a(2) = 33: (without grid)
. . . . . . . . . . . . . . . . . . .
. x---x . x---x . x---x .
. . . .
. x---x o . o x---x . o o o .
. . . .
. o o . o o . x---x .
. . . . . . . . . . . . . . . . . . .
. x---x . x---x . x---x .
. . . .
. x o o . o x o . o x o .
. \ . \ . / .
. x o . o x . x o .
. . . . . . . . . . . . . . . . . . .
. x---x . o o . o x .
. . . \ .
. o o x . x---x o . x---x x .
. / . . .
. o x . x---x . o o .
. . . . . . . . . . . . . . . . . . .
. o o . o o . o o .
. . . .
. x---x x . o x---x . x x---x .
. / . . \ .
. o x . x---x . x o .
. . . . . . . . . . . . . . . . . . .
. x o . x o . o x .
. / . \ . \ .
. x x---x . o x o . o o x .
. . . .
. o o . x---x . x---x .
. . . . . . . . . . . . . . . . . . .
. x o . o x . x x .
. / . / . \ \ .
. x o o . o x o . o x x .
. . . .
. x---x . x---x . o o .
. . . . . . . . . . . . . . . . . . .
. x o . x o . o x .
. \ . \ . \ .
. x x o . o x x . x o x .
. \ . / . \ .
. x o . o x . x o .
. . . . . . . . . . . . . . . . . . .
. o x . x x . o x .
. \ . / \ . \ .
. o x x . x o x . o x x .
. \ . . / .
. o x . o o . x o .
. . . . . . . . . . . . . . . . . . .
. o o . o x . o o .
. . / . .
. x x o . x x o . x o x .
. \ \ . \ . \ / .
. x x . x o . x x .
. . . . . . . . . . . . . . . . . . .
. x o . x x . x o .
. / . / / . / .
. x x o . x x o . x x o .
. \ . . / .
. o x . o o . x o .
. . . . . . . . . . . . . . . . . . .
. x o . o x . o o .
. / . / . .
. x o x . o x x . o x x .
. / . / . / / .
. o x . o x . x x .
. . . . . . . . . . . . . . . . . . .
MATHEMATICA
LinearRecurrence[{5, -10, 10, -5, 1}, {0, 33, 702, 3630, 11409, 27603}, 50] (* Paolo Xausa, Aug 28 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Nicolas Bělohoubek, May 15 2024
STATUS
approved