Question
Question: number of terms in the monomial $(xy+yz+xz)^n$...
number of terms in the monomial (xy+yz+xz)n
Answer
2(n+1)(n+2)
Explanation
Solution
The expression is (xy+yz+xz)n. A general term in its expansion is of the form (xy)p(yz)q(xz)r where p+q+r=n. This simplifies to xp+ryp+qzq+r. Each unique triplet of exponents (p+r,p+q,q+r) corresponds to a distinct term. It can be shown that the mapping from (p,q,r) to (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=n. This is a stars and bars problem with n "stars" and k=3 "bins", given by the formula (k−1n+k−1). Substituting k=3, we get (3−1n+3−1)=(2n+2)=2(n+1)(n+2).