Tip:
Highlight text to annotate it
X
Okay, how did you solve the problem?
The naive or straightforward or brute force way of solving this problem
is to actually take all of these numbers, multiply them together, divide that answer by 5,
and see what the remainder is. If the remainder is 0, then it is divisible by 5.
Otherwise, it's not. But you would be very silly to go through that.
What you should do is realize that a product is going to be divisible by 5
if and only if one of the number that you're multiplying into the product is divisible by 5.
And a number is divisible by 5 if and only if its last digit is a 0 or a 5.
What you can do now, instead of actually doing any multiplying,
you just scan your eyes down the columns here and notice that most of them are not 0s or 5s,
but if you're eagle-eyed, you would have noticed this.
There's one number in there that's divisible by 5--945--
and that's all it takes. The whole product is now going to be divisible by 5.
The answer we're looking for is yes. The product is divisible by 5. Ta da!