By binomial expansion
(1003)12=(1005−2)12=12C0(1005)12+...+12C12(−2)12
=5k+212 for some constant k
=5k+46=5k+(5−1)6
=5(m)+1
(1005)70=5m,
(2016)212=(2015+1)212=5m2+1
(2004)25=(2005−1)25=5m3−1
det (B)=∣∣∣5m+15m15m2+15m3−1∣∣∣
=∣∣∣101−1∣∣∣ (after division by 5)
=(-1-0)
|det B| =1 so remainder is (1)