Inspired by Mehul Arora

There are $$A$$ friends at an amusement park. They all fancy a ride, which takes exactly $$B$$ people on at a time, with $$B < A$$.

If each of them want to ride it the same (positive) number of times, what is the minimum number of times that each of these people have to ride it?

Assume that no other people are available to ride with them, and that they can ride it as many times as they want.

Inspiration

×