Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

How can one compute the q-Multinomial Coefficient as a function of q,m and a list {n1,n2,n3,...} in Mathematica?

See http://mathworld.wolfram.com/q-MultinomialCoefficient.html for the definition.

share|improve this question

closed as off-topic by ciao, Öskå, ubpdqn, m_goldberg, Yves Klett Jul 15 '14 at 21:57

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – ciao, Öskå, ubpdqn, m_goldberg, Yves Klett
If this question can be reworded to fit the rules in the help center, please edit the question.

Read the very definition you link. Then read the documentation... QFactorial... –  ciao Jul 15 '14 at 7:24
Yes, but I want to create a function such that I pass arguments through to it, but I don't know how to deal with the list... (i.e. the multiple denominators) –  dinamix Jul 15 '14 at 7:33
See answer. Be advised, this is not a factory of code-monkeys: Some reasonable background in Mathematica is usually assumed, and questions are generally for help on attempts at solutions. I'd urge you to read the FAQ posts - much good tutorial info there, then graduate to Leonid's free on-line book - most excellent. –  ciao Jul 15 '14 at 7:44

1 Answer 1

This is an example of how to handle the operation, arguments are your list and the Q:

With[{l = #1, q = #2}, 
   QFactorial[Total@l, q]/Times @@ (QFactorial[#, q] & /@ l)] &[{1, 2,3}, 5]

(* 79315236 *)
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.