Air
- 202
- 0
Homework Statement
a) Find the coefficient of x^5 in (1+x+x^2)^4.
b) Find the coefficient of x^2 in (2+2x+x^2)^n.
2. The attempt at a solution
a) (1)^0(x)^3(x^2)^1 & (1)^1(x)^1(x^2)^2.
Coefficient of first: \frac{4!}{(0!)(3!)(1!)} = 4
Coefficient of second: \frac{4!}{(1!)(1!)(2!)}=16
Therefore coefficient of x^5 is 4+12 = 16.
b) This is the part I'm struggling on. May I have help here. It's a general term (power of n which is confusing me).