Make 'a' divisible by 'b'

Mr. Desperate

New member
Joined
Dec 26, 2020
Messages
1
We are given two positive integers 'a' and 'b'. In one move you can increase 'a' by 1 or 2 or 5.
Find the minimum number of moves we need to make 'a' divisible by 'b'.
 
Please follow our guidelines by telling us what you are learning, what you have tried, and what other thoughts you have.

The context may be very important.

Unless you have learned something specific that you think is relevant, I would probably start by trying out some specific numbers. If nothing else, that would help me clarify what I think the problem means, which is by no means entirely clear. Showing us such examples, and your conclusions from them, would be one way to show work even if you have no idea how to actually solve the problem. (I myself don't.)
 
Isn't the solution going to be dependent on the difference between a and b??
 
Top