0

enter image description here

Can someone please explain the 6th line of the explanation: "Also the coefficient of $x^r$ in the product is the number of ways of taking $r$ of the letters $a, b, c,\dots$"?

I cannot understand how the coefficient of $x^r$ in the continued product $(1+ax+a^2 x^2+\dots+a^p x^p)(1+bx+b^2 x^2+\dots+b^p x^p)(1+cx+c^2 x^2+\dots+c^p x^p)$ is the number of ways of taking $r$ of the letters $a, b, c,\dots$. How is it the number of ways? Also is there any relation between this concept and the distribution of balls into bins?

MrAP
  • 3,003

1 Answers1

2

In order to calculate the $x^r$ coefficient we must select $r$ of the letters in a number of ways. This number of ways is given by the number of terms in the coefficient of $x^r$. For example, $$(1+ax+a^2 x^2+\dots+a^p x^p)(1+bx+b^2 x^2+\dots+b^p x^p)(1+cx+c^2 c^2+\dots+c^p x^p)$$ $$=1+(a+b+c)x+(a^2+ab+ac+b^2+bc+c^2)x^2+\dots$$ The number of terms in the $x^r$ coefficients are $1,3,6,\dots$ for $r=1,2,3,\dots$ and these values correspond to the number of ways to select $r$ of the letters $a,b,c$ with the restriction that the maximum number of $a$'s, $b$'s and $c$'s is $p$.

Peter Foreman
  • 19,947