OFFSET
0,4
LINKS
Colin Barker, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-21,35,-35,21,-7,1).
FORMULA
a(n) = (n-2)*n*(n-1)*(n^3+3*n^2-10*n-6)/12.
From Colin Barker, Feb 22 2017: (Start)
G.f.: 3*x^3*(3 - x)*(1 + 8*x + x^2) / (1 - x)^7.
a(n) = 7*a(n-1) - 21*a(n-2) + 35*a(n-3) - 35*a(n-4) + 21*a(n-5) - 7*a(n-6) + a(n-7) for n>6. (End)
EXAMPLE
For n = 3 we get a(3) = 9 ways to color the edges of a tetrahedron in three colors so that no color appears more than twice.
MATHEMATICA
Table[(n-2)*n*(n-1)*(n^3+3*n^2-10*n-6)/12, {n, 0, 32}]
PROG
(PARI) a(n) = (n-2)*n*(n-1)*(n^3+3*n^2-10*n-6)/12 \\ Charles R Greathouse IV, Feb 22 2017
(PARI) concat(vector(3), Vec(3*x^3*(3 - x)*(1 + 8*x + x^2) / (1 - x)^7 + O(x^40))) \\ Colin Barker, Feb 22 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
David Nacin, Feb 22 2017
STATUS
approved