Total number of arrangements = 15!
Extreme chairs are occupied by girls, thus there are four gaps among 5 girls where boys can be seated. Let the number of boys in these four gaps be 2x+1, 2y+1, 2z+1 and 2t+1, then
2x+1+2y+1+2z+1+2t+1=10
⇒x+y+z+t=3
Where x, y, z, t are integers and 0≤x≤3, 0≤y≤3, 0≤z≤3, 0≤t≤3
∴ The number of ways of selecting positions for boys = coefficient of x3 in (1+x+x2+x3)4
= coefficient of x3 in (1−x41−x)4
= coefficient of x3 in (1−x4)4(1−x)−4= 6C3=20
∴ Number of arrangements of boys and girls with given condition is 20×10!×5!
∴ Required probability =20×10!×5!15!=203003⇒n=3003
⇒ The value of 3003n is 1