Skip to content

Problem 2

A number aa is nn-good if it can be written as r+bnr+bn where 0<r<n0\lt r\lt n and gcd⁡(r,n)=1\gcd(r,n)=1, gcd⁡(b,n)=1\gcd(b,n)=1. Find the size of the set of distinct remainders mod 32003^{200} of perfect squares which are 31003^{100}-good. In other words, find ∣{a2 mod 3200∣a2 is 3100-good}∣\left|\{a^2\bmod 3^{200}\mid a^2\text{ is }3^{100}\text{-good}\}\right|. Format for answering: If this quantity is expressed in the form of a×bka\times b^k, find a+b+ka+b+k.

Solution

Answer: 203203 (the quantity is 2×31982\times3^{198})

First count the square residues modulo 31003^{100} that are coprime to 33. There are φ(3100)=2⋅399\varphi(3^{100})=2\cdot3^{99} coprime residues. Two such numbers have the same square precisely when they are congruent up to sign modulo 31003^{100}, giving 3993^{99} distinct square residues.

If a2≡r(mod3100)a^2\equiv r\pmod{3^{100}} and 3∤a3\nmid a, then

(a+k⋅3100)2≡a2+2ak⋅3100(mod3200).(a+k\cdot3^{100})^2\equiv a^2+2ak\cdot3^{100}\pmod{3^{200}}.

Because 2a2a is coprime to 31003^{100}, varying kk covers every possible upper residue. For each rr, exactly φ(3100)=2⋅399\varphi(3^{100})=2\cdot3^{99} of these are 31003^{100}-good. Thus the size is 399⋅2⋅399=2⋅31983^{99}\cdot2\cdot3^{99}=2\cdot3^{198}, and a+b+k=2+3+198=203a+b+k=2+3+198=203. This lifting argument is also related to Hensel’s lemma.