# Multinomial Expansion

1. Sep 5, 2009

### S_David

Hello,

Is there a simple programmable form of multinomial expansion, like a summation with explicit and clear lower and upper limits?

Regards

2. Sep 7, 2009

### mathman

It is a little messy. The general term is (n!/[m1!m2!...mk!])a1m1a2m2...akmk. The sum limits are all mj >=0 and m1+m2+...+mk=n.

To simplify typing all aj and mj should be thought of as being subscripted. k is the total number of variables.