Given two real numbers a and b and a threshold t>0, try to find the smallest positive integer n s.t. an and bn are both close enough to some integers with their difference less than t.
I think n does not always exist. But even if there does(in big t case), a fine algorithm for n is hard to develop.