For, 7 groups of 7 balls we need 49 balls atleast
so we draw randomly 49 balls
assume worst case that minimum number of groups are formed
color |
c1 |
c2 |
c3 |
c4 |
c5 |
c6 |
c7 |
balls |
7 |
6 |
6 |
6 |
6 |
6 |
6 |
balls |
6 |
|
|
|
|
|
|
(1 group and 49 balls)
this is the worst case that we got one group
when we pick next ball it must belong to one of the 7 group(let it be c2)
color |
c1 |
c2 |
c3 |
c4 |
c5 |
c6 |
c7 |
balls |
7 |
7 |
6 |
6 |
6 |
6 |
6 |
balls |
6 |
|
|
|
|
|
|
(2 groups and 50 balls)
when we pick next 6 balls we didnt get any new group
color |
c1 |
c2 |
c3 |
c4 |
c5 |
c6 |
c7 |
balls |
7 |
7 |
6 |
6 |
6 |
6 |
6 |
balls |
6 |
6 |
|
|
|
|
|
(2 group and 56 balls)
when we pick next ball it must belong to one of the 7 group(let it be c3)
color |
c1 |
c2 |
c3 |
c4 |
c5 |
c6 |
c7 |
balls |
7 |
7 |
7 |
6 |
6 |
6 |
6 |
balls |
6 |
6 |
|
|
|
|
|
(3 groups and 57 balls)
when we pick next 6 balls we didnt get any new group
color |
c1 |
c2 |
c3 |
c4 |
c5 |
c6 |
c7 |
balls |
7 |
7 |
7 |
6 |
6 |
6 |
6 |
balls |
6 |
6 |
6 |
|
|
|
|
(3 groups and 63 balls)
when we pick next ball it must belong to one of the 7 group(let it be c4)
color |
c1 |
c2 |
c3 |
c4 |
c5 |
c6 |
c7 |
balls |
7 |
7 |
7 |
7 |
6 |
6 |
6 |
balls |
6 |
6 |
6 |
|
|
|
|
(4 groups and 64 balls)
when we pick next 6 balls we didnt get any new group
color |
c1 |
c2 |
c3 |
c4 |
c5 |
c6 |
c7 |
balls |
7 |
7 |
7 |
7 |
6 |
6 |
6 |
balls |
6 |
6 |
6 |
6 |
|
|
|
(4 groups and 70 balls)
when we pick next ball it must belong to one of the 7 group(let it be c5)
color |
c1 |
c2 |
c3 |
c4 |
c5 |
c6 |
c7 |
balls |
7 |
7 |
7 |
7 |
7 |
6 |
6 |
balls |
6 |
6 |
6 |
6 |
|
|
|
(5 groups and 71 balls)
when we pick next 6 balls we didnt get any group new group
color |
c1 |
c2 |
c3 |
c4 |
c5 |
c6 |
c7 |
balls |
7 |
7 |
7 |
7 |
7 |
6 |
6 |
balls |
6 |
6 |
6 |
6 |
6 |
|
|
(5 groups and 77 balls)
when we pick next ball it must belong to one of the 7 group(let it be c6)
color |
c1 |
c2 |
c3 |
c4 |
c5 |
c6 |
c7 |
balls |
7 |
7 |
7 |
7 |
7 |
7 |
6 |
balls |
6 |
6 |
6 |
6 |
6 |
|
|
(6 groups and 78 balls)
when we pick next 6 balls we didnt get any group new group
color |
c1 |
c2 |
c3 |
c4 |
c5 |
c6 |
c7 |
balls |
7 |
7 |
7 |
7 |
7 |
7 |
6 |
balls |
6 |
6 |
6 |
6 |
6 |
6 |
|
(4 groups and 84 balls)
Then 85th ball and we get 7 monochromatic groups of 7 balls each