Here total number of ways n=63=216.
To find favourable number of ways, we have to find the sum of coefficients of powers of x less than 9 in the expansion.
(x+x2+x3+x4+x5+x6)3 =x3(1+x+x2+x3+x4+x5)3 =x3(1+x+x2+x3+x4x5)3(1−x)3(1−x)3 =x3(1−x6)3(1−x)−3 =x3[1−3x6+3x12−x16]×[1+3x+6x2+.....+(r+1)(r+2)2xr+.....] =[x3−3x9+3x15−x21]×[1+3x+6x2+....+(r+1)(r+2)2xr+.....]...(1)
It is evident from (1) that Coeff.ofx8=1×(5+1)(5+2)2=21 Coeff.ofx7=1×(4+1)(4+2)2=15 Coeff.ofx6=1×(3+1)(3+2)2=10 Coeff.ofx5=1×(2+1)(2+2)2=6 Coeff.ofx4=1×(1+1)(1+2)2=4 and Coeff. of x3=1
(Note that to obtain the coefficient of x3 we substitute r=5 in the second bracket and multiply this coeff. of x5 with the coefficient of x3 (i.e.1) in the first bracket etc.)
Sum of these coeffcients=56
Hence the favourable number of ways. m=216−56=160.
Hence the required probability =mn=160216=2027.