We are given the expression $(1+xy+y^2)^n$ where $n$ is positive integer. We are required to find the coefficient of $x^3y^5$ in the expansion of the given expression.
I know how to expand a binom to certain power, if it was $(xy+y^2)^n$ then $n = 4$ and the coefficient would be $\binom{4}{1}(xy)^3(y^2)^1$, but I'm not sure how to solve this when we have expression with three terms.
We may have
then by trinomial expansion
$$(1+xy+y^2)^n =\ldots+ \frac{5!}{1!2!3!}(xy)^3y^2+\ldots$$