The question is taken from a problem-solving test:
Both p and q are positive integers. What's the smallest possible value of the numbers such that:
$\frac{p}{q}=0,126126\overline{126}$
I don't really know how to proceed with such a question without just trying different values I see if I find some pattern. Does anyone have a method for solving these types of questions in general?