12!=1.2.3.4.5.6.7.8.9.10.11.12
1.2.3.4.5.6=720 =217 (mod 503)
7.8.9=504=1 (mod 503)
10.11.12=1320 =314 (mod 503)
12!=217.1.314=233 (mod 503)
20!=12!. 13.14.15.16.17.18.19.20
14.16.18.20=80640=160 (mod 503)
13.15.17.19=62985=110 (mod 503)
20!=233.160.110=4100800 =344 (mod 503)
12!=0 (mod 4)
20!=0 (mod 4)
12!.20!=0 (mod 4)
12!.20!=233.344 =80152=175 (mod 503)
r*4+s*503=1 olması için r=?, s=?
s=-1, r=126 alınırsa,
12!.20!= 126*4*175 + 0 = 88200=1684 (mod 2012)
Cevap 1684