i believe i can do it with 13.
Spoiler for tastes good
as before, label the bottles 1-500 in binary and assign 9 prisoners each binary bit for drinking.
then with the four extra prisoners, prisoner 1x drinks the bottles prisoners 1, 3, 5, 7, and 9 have drinken from.
(the bottles with any odd bits set.)
prisoner 2x drinks the bottles prisoners 2,3,6,7 have drinken form.
prisoner 3x drinks the bottles prisoners 4,5,6,7 have drinken from.
prisioner 4x drink the bottles prisoners 8,9 have drinken from.
in this way, the four extra prisoners act as a a parity check of the 9 drinking prisoners.
as an example... let's say the acomplice is prisoner 7.
we get a result of prisoners 1, 3, and 7 dieing. this tells us that bottle 2^6 +2^2 +1 = 69 is likely poisoned.
however, only prisoner 1x and 2x die. therefore 7 was the accomplice
let's say the acomplice was 4x. let's say 3,5, and 7 die. this tells us that 2^2 +2^4 +2^6 = 84 is likely poisoned.
prisoner 1x, 2x, 3x, and of course 4x dies. since all 4 of them had no drinks in common, you know one of the extras was the accomplice. therefore the 84th bottle was poisoned.
Question regarding this approach
Spoiler for example
The solution seems to add 4 prisoners, where
prisoner 1x drinks the bottles prisoners 1, 3, 5, 7, and 9 have drinken from.
prisoner 2x drinks the bottles prisoners 2,3,6,7 have drinken form.
prisoner 3x drinks the bottles prisoners 4,5,6,7 have drinken from.
prisioner 4x drink the bottles prisoners 8,9 have drinken from.
So, suppose that prisoner 7 and prisoner 8's allotted drinks include the poison, and they both die. From the scheme above, the prisoners 1x, 2x, 3x, and 4x will die as well.
Suppose prisoner 7 and prisoner 8 have the poisoned wine among their drinks, this scheme seems like it can not distinguish between the cases where the the accomplice is among the remaining non-parity-check prisoners (i.e., prisoner 1, prisoner 2, and so on).
The solution seems to add 4 prisoners, where
prisoner 1x drinks the bottles prisoners 1, 3, 5, 7, and 9 have drinken from.
prisoner 2x drinks the bottles prisoners 2,3,6,7 have drinken form.
prisoner 3x drinks the bottles prisoners 4,5,6,7 have drinken from.
prisioner 4x drink the bottles prisoners 8,9 have drinken from.
So, suppose that prisoner 7 and prisoner 8's allotted drinks include the poison, and they both die. From the scheme above, the prisoners 1x, 2x, 3x, and 4x will die as well.
Suppose prisoner 7 and prisoner 8 have the poisoned wine among their drinks, this scheme seems like it can not distinguish between the cases where the the accomplice is among the remaining non-parity-check prisoners (i.e., prisoner 1, prisoner 2, and so on).






