Show that the remainder when 2^1990 (2 to the power of 1990) is divided by 1990 equals 1024.
Note that the prime factorization of 1990 is 2 × 5 × 199.
Then consider x = 21980 (mod 1990).
By Fermat's Little Theorem, 2198 = 1 (mod 199).
Hence 21980 = (2198)10 = 1 (mod 199).
Also, 21980 = (24)495 = 1495 = 1 (mod 5).
Therefore 21980 = 1 (mod 995).
(Consider x = 1 + 199t, for some integer t.
Then x = 1 + 199t = 1 (mod 5).
Hence 199t = -t = 0 (mod 5), and so t = 0 (mod 5).
Letting t = 5s, we obtain x = 1 + 995s, for some integer s.
Ref.: Chinese Remainder Theorem.)
Equivalently, 21980 = 1 or 996 (mod 1990).
But 21980 = 0 (mod 2), and so 21980 = 996 (mod 1990).
Therefore 21990 = 21980 × 210 = 996 × 210 = (996 × 2) × 29 = 2 × 29 = 210 = 1024 (mod 1990).