Find coefficient of x7 in (1−x+2x3)10.
Using multinomial expansion: (1−x+2x3)10=∑a!b!c!10!(1)a(−x)b(2x3)c
where a+b+c=10 and b+3c=7.
From b+3c=7: possible (c,b)=(0,7),(1,4),(2,1)
Case 1: c=0,b=7,a=3: 3!7!0!10!(−1)7=−120
Case 2: c=1,b=4,a=5: 5!4!1!10!(−1)4⋅2=5!4!10!⋅2=1260×2=2520. Wait: 5!4!1!10!=120⋅243628800=1260. So 1260×2=2520.
Case 3: c=2,b=1,a=7: 7!1!2!10!(−1)1⋅4=−7!2!10!×4=−360×4. 7!2!10!=5040×23628800=360. So −360×4=−1440.
Total = −120+2520−1440=960
The answer is 960.