Skip to main content
OlympiadHQ

Browse · MathNet

Print

Second Round, March 2019

Netherlands 2019 number theory

Problem

If you try to divide the number by , you will get a remainder. The number fits times in and you will be left with as remainder. There are two positive integers having the following property: if you divide by , you will get a remainder of . What are these two integers?
Solution
and
Final answer
666 and 1999

Techniques

Inverses mod nFactorization techniquesTechniques: modulo, size analysis, order analysis, inequalities