solve number-guess, Chinese remainder theorem