solution:
there could be one possible solution for all of it. it is we allow
the number of trusted students to be k and identitacl bottle to be n.
then always the number 2^k>=n (number of bottle). if this condition is satisfied then and then only we will be able to find the potion is present in which bottle.
for a example i may give you the number of bottle to be 1000 and the trusted number of student is 10 or more but less because then it will violate our rule of 2^k>=n.
now start mentioning every bottle from 1 onwards to 1000 in binary form i.e
decimal form binary form according
for no. of number of students
bottles which are trusted
------------------------------------------------------
1 = 0000000001 as there are 10 student which are trusted so we arrange
2 = 0000000010 them in a order of 10,9,8,7,6,5,4,3,2,1
3 = 0000000011
4 = 0000000100
. .
. .
and so on for 1000
now for a sample case you can see if the required bottle is 10, whose binary form in 10 bits is 0000001001 so it is tested by 1th and 4th student whose skin turns out to be bright blue.
hope this helps
regards.
Problem 7. (20 pts) Professor Harry Potter has devised an ingenious concoction: it looks like water,...