1

I've been trying to derive this formula for quite some time now with little progress.

I've seen concepts such as Pascal's pyramids and Pascal's simplices mentioned throughout my research; however, I doubt their significance to the formula.

The most promising outlet I've seen are the coefficients that come from the expansion of $(1 + x^2 + x^3 +\dots + x^{r - 1})^n$ [for various values of $r$ and all values of $n$].

I've seen somewhat similar questions posted on Math SE before, but I'm struggling to find an answer that provides an accurate formula as well as a general breakdown of how it was achieved.

If someone could help, that would be great!

Seeker
  • 3,677
rizevenk11
  • 11
  • 1

1 Answers1

3

Searching this sequence on the OEIS gives A027907 which are the trinomial coefficients; these are the coefficients in the expansion of $(1 + x + x^2)^4$. They can be expressed in terms of multinomial coefficients (which in this case can be thought of as Pascal's pyramid if you want to think of them that way) by the multinomial theorem; doing this gives that the $i^{th}$ term is

$$\sum_{a+2b=i} \frac{4!}{a! b! (4-a-b)!}.$$

For example, the $i = 2$ term is $\frac{4!}{0! 1! 3!} + \frac{4!}{2! 0! 2!} = 4 + 6 = 10$.

(There is a slightly unfortunate collision of terminology here; the trinomial coefficients are not the $3$-variable special case of the multinomial coefficients. Unfortunately I don't know a better name for these numbers.)

Qiaochu Yuan
  • 468,795
  • 1
    To put it another way, $(1+x+x^2)^4$ is the factorization of $1+4x+10x^2+\cdots+x^8$. – Gerry Myerson Sep 14 '22 at 05:24
  • @Qiaochu Yuan Thank you so much for your answer! This confirms a couple things that I've been looking at. With that being said, could you possibly expand on how you got to the "a + 2b = i" in the summation constraint? – rizevenk11 Sep 14 '22 at 13:28
  • @rizevenk11: it comes from asking when a term in the multinomial expansion multiplies out to $x^i$. The $a$ contribution is the number of $x$ factors that occur and the $b$ contribution is the number of $x^2$ factors that occur. – Qiaochu Yuan Sep 14 '22 at 16:44