NumberthonNumberthon

SolveFire POTD

Bronze
number_theory
6/18/2026
Problems sourced from solvefire.net
Problem
A four-digit passcode has no digit equal to 0. Starting with the passcode, a machine repeatedly moves the first digit to the end, producing four displayed numbers in all. When these four numbers are divided by 37, their remainders are 10, 13, 15, and 17, in some order. What is the sum of the digits of the passcode?
Solution ApproachShow

Step-by-step approach

Let the passcode be abcd‾\overline{abcd}. The four cyclic rotations are abcd‾\overline{abcd}, bcda‾\overline{bcda}, cdab‾\overline{cdab}, dabc‾\overline{dabc}. Their sum =1111(a+b+c+d)=11⋅101(a+b+c+d)=1111(a+b+c+d)=11\cdot101(a+b+c+d). Also sum of remainders mod 37 ≡10+13+15+17=55≡55−37=18(mod37)\equiv 10+13+15+17=55\equiv55-37=18\pmod{37}. So 1111(a+b+c+d)≡18(mod37)1111(a+b+c+d)\equiv18\pmod{37}: 1111=30⋅37+11111=30\cdot37+1, so a+b+c+d≡18(mod37)a+b+c+d\equiv18\pmod{37}. Since digits are 1-9, 4≤a+b+c+d≤364\le a+b+c+d\le36, so a+b+c+d=18a+b+c+d=18.

Ready for more competition problems?

Practice the full SolveFire course and compete in ranked math battles — free to play.