The desired number is the coefficient of x12 in (x+x2+x3)8
= coefficient of x12 in x8(1+x+x2)8
= coefficient of x4 in (1−x1+x3)8
= coefficient of x4 in (1+x3)8(1−x)−8
= coefficient of x4 in (1−8x3+....)(1−x)−8
= coefficient of x4 in (1−x)−8−8× coefficient of x in (1−x)−8 =4+8−1C8−1−8×1+8−1C8−1 =11C7−8×8C7=4×3×211×10×93×8−8×8 =330−64=266