OFFSET
5,1
LINKS
J. B. Kadane, Some equivalence classes in paired comparisons, The Annals of Mathematical Statistics, 37 (1966), 488-494.
FORMULA
a(n) = n!*((7/3)*(n-4)+4*(n-5)+(7/6)(n-6)(n-7)[n>5]+(1/18)*(n-7)(n-8)(n-9)[n>6]+(1/1944)[n>7]*(n-8)!/(n-12)!) (see Kadane).
E.g.f.: (x^7-27*x^6+216*x^5-702*x^4+972*x^3-405*x^2-243*x+189)*x^5/((3^4)*(1-x)^5).
EXAMPLE
For n=5, the a(5)=280 solution is 5!*((7/3)*(5-4)+4*(5-5)+(7/6)(5-6)(5-7)[5>5]+(1/18)*(5-7)(5-8)(5-9)[5>6]+(1/1944)[5>7]*(5-8)!/(5-12)!)=5!*(7/3)*(5-4)=280.
MATHEMATICA
CoefficientList[Series[(x^7-27*x^6+216*x^5-702*x^4+972*x^3-405*x^2-243*x+189)*x^5/((3^4)*(1-x)^5), {x, 0, 22}], x]Table[n!, {n, 0, 22}] (* Stefano Spezia, Sep 27 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Ian R Harris, Ryan P. A. McShane, Sep 22 2022
STATUS
approved