Coefficient of x7 in (1−x+2x3)10
general term : 10Cr(1−x)10−r⋅(2x3)r;10Cr(1−x)10−r⋅2r⋅x3r.
When r=0, coefficient of x7 in 10C0(1−x)10 ⇒−10C7.
When r=1, coefficient of x4 in 10C1(1−x)9⋅2 ⇒20(9C4)
When r=2, coefficient of x1 in 10C2(1−x)8⋅22 ⇒180(−8C1) ⇒ coefficent of x7=(−10C7+20⋅9C4−180⋅8C1) =(−120,2520−1440)=960.