2006 SMT/Algebra Problems/Problem 5
Problem
Jerry is bored one day, so he makes an array of Cocoa pebbles. He makes equal rows with the pebbles remaining in a box. When Kramer drops by and eats one, Jerry yells at him until Kramer realizes he can make equal rows with the remaining pebbles. After Kramer eats another, he finds he can make equal rows with the remaining pebbles. Find the smallest number of pebbles that were in the box in the beginning.
Solution
Let be the minimum number of pebbles in the box. We're given that is a multiple of , one more than a mulitple of , and two more than a multiple of .
Since is two more than a multiple of , its last digit must be . Since it's one more than a multiple of , its digits must sum to one more than a multiple of .
First, let's guess that is a two digit number. It must be of the form , and its digits must sum to , so . However, this is not a multiple of , so cannot be only two digits.
Next, we try , a three digit number. The sum of the digits should be . (We don't try because that would make the number too big, and we're only looking for the smallest value.) First, we try , but this isn't a multiple of . isn't a multiple of either, but is. Therefore, the smallest value of is .