2026-07-15

Problem — 2026-07-15

Medium

MediumNumber theory

A secret society uses a peculiar clock for their meetings. The clock face has positions numbered 0 through 99 (instead of 1-12), and the single hand moves in a special way: starting at position 0, it advances by 37 positions with each tick. After many ticks, the hand will eventually return to position 0 for the first time. How many distinct positions on the clock face will the hand visit before returning to 0?

Enter a whole number

Show solution
We need to find how many distinct positions the hand visits on a clock with positions 0 through 99, where each tick advances by 37 positions (modulo 100). After kk ticks, the hand is at position 37k(mod100)37k \pmod{100}. The hand returns to 0 when 37k≡0(mod100)37k \equiv 0 \pmod{100}, which means 100∣37k100 | 37k. Since gcd⁡(37,100)=1\gcd(37, 100) = 1 (as 37 is prime and doesn't divide 100), by Bézout's identity, 37 and 100 are coprime. When gcd⁡(a,n)=1\gcd(a,n) = 1, the sequence 0,a,2a,3a,…(modn)0, a, 2a, 3a, \ldots \pmod{n} cycles through all nn residues before repeating. Therefore, the hand visits all positions 0,37,74,11,48,85,…(mod100)0, 37, 74, 11, 48, 85, \ldots \pmod{100} before returning to 0. The number of distinct positions visited is exactly 100. To verify the period: the smallest positive kk such that 37k≡0(mod100)37k \equiv 0 \pmod{100} is when k=100gcd⁡(37,100)=1001=100k = \frac{100}{\gcd(37,100)} = \frac{100}{1} = 100. Alternatively, by Fermat-Euler theorem, since gcd⁡(37,100)=1\gcd(37,100)=1, we know 37ϕ(100)≡1(mod100)37^{\phi(100)} \equiv 1 \pmod{100}, where ϕ(100)=40\phi(100) = 40. But for the additive sequence, the period is 100gcd⁡(37,100)=100\frac{100}{\gcd(37,100)} = 100. The answer is 100\boxed{100}.