Given,
(1+x)(1−x2)(1+x3+x23+x31)5
=(1+x)2(1−x)(x3x3+3x2+3x+1)5
=(1+x)2(1−x)(x3(1+x)3)5
=x15(1+x)17(1−x)
=x15(1+x)17−x14(1+x)17
Now for coefficient of x3, we will find coefficient of x18 in expansion of (1+x)17 which is not possible and x17 in expansion of −(1+x)17 which will be −C1717=−1
And for coefficient of x−13 we will coefficient of x2 in expansion of (1+x)17 which will be C217 and coefficient of x in expansion of −(1+x)17 which will be −C117, so the coefficient of x−13 will be C217−C117=136−17=119
Hence, the sum will be 119−1=118