Mmm... Candies

Bob has 19 candy packs, each of which contains either 4 or 5 candies. His friend counts the total number of candies and tells Bob that it is a multiple of 17.

How many packs contain 5 candies?

3 5 7 9 11 13 15 17

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

Michael Huang
Aug 28, 2017

Let x x denote the number of 4 4 -piece packs and y y the number of 5 5 -piece packs. The equations to solve are x + y = 19 4 x + 5 y = 17 \begin{array}{rl} x + y &= 19\\ 4x + 5y &= 17\ell \end{array} where \ell is the positive integer. In m o d 17 \bmod\, 17 , x + y 2 4 x + 5 y 0 \begin{array}{rl} x + y &\equiv 2\\ 4x + 5y &\equiv 0 \end{array} So y 8 9 five piece candy packs y \equiv -8 \equiv \boxed{9\text{ five piece candy packs}} . So we have 10 10 four-piece and 9 9 five-piece packs as the only solution for the problem since 17 17 is prime.

Steven Yuan
Aug 29, 2017

Let x x be the number of 5-piece packs. Then, 19 x 19 - x represents the number of 4-piece packs. The total number of pieces of candy is equal to 5 x + 4 ( 19 x ) = 76 + x . 5x + 4(19 - x) = 76 + x. The smallest multiple of 17 greater than 76 is 17 × 5 = 85 , 17 \times 5 = 85, so we conclude x = 85 76 = 9 . x = 85 - 76 = \boxed{9}. The second smallest multiple of 17 greater than 76 is 17 × 6 = 102 , 17 \times 6 = 102, but 102 76 = 26 > 19 , 102 - 76 = 26 > 19, so this scenario is not possible.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...