Solveeit Logo

Question

Question: number of terms in the monomial $(xy+yz+xz)^n$...

number of terms in the monomial (xy+yz+xz)n(xy+yz+xz)^n

Answer

(n+1)(n+2)2\frac{(n+1)(n+2)}{2}

Explanation

Solution

The expression is (xy+yz+xz)n(xy+yz+xz)^n. A general term in its expansion is of the form (xy)p(yz)q(xz)r(xy)^p (yz)^q (xz)^r where p+q+r=np+q+r=n. This simplifies to xp+ryp+qzq+rx^{p+r} y^{p+q} z^{q+r}. Each unique triplet of exponents (p+r,p+q,q+r)(p+r, p+q, q+r) corresponds to a distinct term. It can be shown that the mapping from (p,q,r)(p,q,r) to (p+r,p+q,q+r)(p+r, p+q, q+r) is one-to-one. Therefore, the number of distinct terms is equal to the number of non-negative integer solutions to p+q+r=np+q+r=n. This is a stars and bars problem with nn "stars" and k=3k=3 "bins", given by the formula (n+k1k1)\binom{n+k-1}{k-1}. Substituting k=3k=3, we get (n+3131)=(n+22)=(n+1)(n+2)2\binom{n+3-1}{3-1} = \binom{n+2}{2} = \frac{(n+1)(n+2)}{2}.