OFFSET
4,2
COMMENTS
Rotations and reflections of a selection are regarded as different. For the number of congruence classes see A289231.
LINKS
Heinrich Ludwig, Table of n, a(n) for n = 4..100
Index entries for linear recurrences with constant coefficients, signature (9,-36,84,-126,126,-84,36,-9,1).
FORMULA
a(n) = (n^8 -8*n^7 -50*n^6 +556*n^5 +231*n^4 -12388*n^3 +17914*n^2 +86648*n -198528)/24.
From Colin Barker, Jun 30 2017: (Start)
G.f.: x^5*(13 + 742*x + 2322*x^2 + 87*x^3 - 2503*x^4 + 684*x^5 + 560*x^6 - 225*x^7) / (1 - x)^9.
a(n) = 9*a(n-1) - 36*a(n-2) + 84*a(n-3) - 126*a(n-4) + 126*a(n-5) - 84*a(n-6) + 36*a(n-7) - 9*a(n-8) + a(n-9) for n>12.
(End)
EXAMPLE
There are thirteen ways to choose four 2 X 2 X 2 triangles (aaa, ..., ddd) from a 5 X 5 X 5 point grid, for example:
a a a .
a a a a a a a a
b c c . d . . . . . a .
b b c d b d d c b c c d b c c d
. . . d d b b . c c b b c d d b b c d d
The other nine possible selections are rotations and reflections of these.
Note: aaa, ..., ddd are not distinguishable, they are denoted differently for a better perception of the 2 X 2 X 2 triangles only.
MAPLE
A289225:=n->(n^8 -8*n^7 -50*n^6 +556*n^5 +231*n^4 -12388*n^3 +17914*n^2 +86648*n -198528)/24: seq(A289225(n), n=4..50); # Wesley Ivan Hurt, Jun 29 2017
PROG
(PARI) concat(0, Vec(x^5*(13 + 742*x + 2322*x^2 + 87*x^3 - 2503*x^4 + 684*x^5 + 560*x^6 - 225*x^7) / (1 - x)^9 + O(x^30))) \\ Colin Barker, Jun 30 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Heinrich Ludwig, Jun 29 2017
STATUS
approved