How to Share Candies

I have a bag of candies, and I want to divide it with my friends.

When I divide the candies with 11 persons, there are left 3 candies.

When I divide the candies with 8 persons, there are left 7 candies.

When I divide the candies with 7 persons, there are left 5 candies.

What is the minimum number of candies in the bag?


The answer is 47.

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.

1 solution

Maggie Miller
Aug 13, 2015

Since 7 , 8 , 11 7,8,11 are coprime, by the Chinese remainder theorem there is at most one solution between 1 1 and 7 8 11 7\cdot 8\cdot 11 . Moreover, 47 3 ( m o d 11 ) , 7 ( m o d 8 ) 47\equiv 3\pmod{11},7\pmod{8} and 5 ( m o d 7 ) 5\pmod{7} . Therefore, the answer is 47 \boxed{47} .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...