Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't think so. After each drawing the number of whites is congruent modulo 2 to the initial number of whites. Hence, when there are two beans left, one will be white and the other black so the last bean will be white.


That's the right answer, yes (you can even skip "Hence, when there...the other black"); but what do you mean by "I don't think so"?




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: