SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Pastimes : Brain Teasers.

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: space cadet who wrote (109)3/3/1998 5:14:00 PM
From: Mitch Blevins  Read Replies (1) of 136
 
That is an interesting one.
It's easy to see that a maximum for the number of balls would be limited to half the number of terminating leafs in a balanced trinary tree,
n = round_down_to_nearest_int((3^k)/2),
but there is more to it than that.
Given the above equation, I could have used three quesses to solve for 13 balls. If I had a control ball, that I knew was the weight of the non-odd-balls, I could do it with 13 balls. After the first weighing, I will always have a control ball, so I'll assume that this consideration will only affect the equation once.
Also, note that the first weighing divides the balls into 3 groups, with each group limited to round_down_int((3^(k-1))/2) balls.
Therefore, the answer must be:
n = 3*round_down_int((3^(k-1))/2) balls,
for k weighings.

~Mitch
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext