6 6 Men and a Monkey

Algebra Level 5

6 6 men are sharing a big pile of bananas with a monkey. The first gives one banana to the monkey and takes some bananas, leaving 1 / 64 1/64 th of the remaining pile. The second gives one banana to the monkey and takes some bananas, leaving 1 / 32 1/32 th of the remaining pile. This pattern continues, with the n n th person leaving 1 / 2 7 n 1/2^{7-n} th of the pile after giving a single banana to the monkey each time. Finally, the 6 6 th man gives one banana to the monkey, takes half of the pile of bananas, and leaves the rest for the monkey.

Let the smallest amount of total bananas needed such that each person receives a positive integer number of bananas be N N . What is N ( m o d 1000 ) N\pmod{1000} ?

Note: The men do take some bananas for themselves.


The answer is 753.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Daniel Liu
Apr 29, 2014

This problem is easy to just bash out. However, working with binary simplifies the problem immensely.

Note that subtracting 1 1 from a binary number N N decreases the units digit by 1 1 (duh). However, dividing by 2 2 is the clever part: it moves the decimal place one place to the left. Dividing \by 2 n 2^n moves the decimal place n n places to the left.

Thus, the number 110100100010000100000 1 2 1101001000100001000001_2 works: we first subtract the 1 1 , cancelling out the first 1 1 . Then we move the decimal place 6 6 places to the left, arriving at the next 1 1 . We the subtract 1 1 again, cancelling it out. We move 5 5 places to the left, arriving at the next 1 1 . We can continue doing this, and the final number of bananas after the process is over is 1 1 , which is left for the monkey.

Thus, we just need to convert 110100100010000100000 1 2 1101001000100001000001_2 to base 10 10 , which is 3442753 3442753 , and the answer is 753 \boxed{753} .

ARG! I bashed it out and got 752 because I forgot to add 1 for the first monkey. :O

Finn Hulse - 7 years, 1 month ago
Nathan Ramesh
Apr 29, 2014

1101001000100001000001 base 2 to base 10

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...