Kid have 8 black balls and 8 white balls.
Kid have 8 black balls and 8 white balls. He is trying to arrange a ball in a row then in how many ways can he arrange these balls in a row so that balls of different colors alternate?
Answer/Solution
2×(8!)^2
Steps/Work
8 black balls can be arranged in 8! ways ...(A)
Now we need to arrange white balls such that white balls and black balls are positioned alternatively. i.e., we can arrange 8 white balls either in the 8 positions marked as A,B,C,D,E,F,G,H or in the 8 positions marked as B,C,D,E,F,G,H,I as shown below.
8 white balls can be arranged in the 8 positions marked as A,B,C,D,E,F,G,H in 8! ways.
8 white balls can be arranged in the 8 positions marked as B,C,D,E,F,G,H,I in 8! ways.
8 white balls can be arranged in the 8 positions marked as A,B,C,D,E,F,G,H or in the 8 positions marked as B,C,D,E,F,G,H,I in 8!+8!=2×8! ways ...(B)
From (A) and (B),
required number of ways =8!×2×8!=2×(8!)^2
C
Now we need to arrange white balls such that white balls and black balls are positioned alternatively. i.e., we can arrange 8 white balls either in the 8 positions marked as A,B,C,D,E,F,G,H or in the 8 positions marked as B,C,D,E,F,G,H,I as shown below.
8 white balls can be arranged in the 8 positions marked as A,B,C,D,E,F,G,H in 8! ways.
8 white balls can be arranged in the 8 positions marked as B,C,D,E,F,G,H,I in 8! ways.
8 white balls can be arranged in the 8 positions marked as A,B,C,D,E,F,G,H or in the 8 positions marked as B,C,D,E,F,G,H,I in 8!+8!=2×8! ways ...(B)
From (A) and (B),
required number of ways =8!×2×8!=2×(8!)^2
C