https://9lib.org/document/myjl0gmz-computing-exact-distributions-functions-ordered-multinomial-counts.html