From the given, we know
1043l−[1043l]=1043m−[1043m]=1043n−[1043n].
Thus, 3l≡3m≡3n(mod104)
⇔{3l≡3m≡3n(mod24)3l≡3m≡3n(mod54).
Since (3,2)=1, it follows from (1) that
3l−n≡3m−n≡1(mod24).
Let u be the smallest positive integer satisfying 3u≡1(mod24), then for any positive integer v satisfying 3v≡1(mod24), we have u∣v, i.e., u divides v. In fact, if u×v, then by the division algorithm, there exist non-negative integers a and b, such that v=au+b, where 0<b<u. If b=0, then 3b≡1(mod24), contradicting the minimality of u. Therefore, b=0, and u∣v.
Since r>s, the sides of the triangle are 500r+n,500s+n, and n, and we have n>500(r−s). Therefore, when s=1,r=2,n=501, the perimeter of the triangle is minimized, with a value of
(1000+501)+(500+501)+501=3003.
Note: A key to solving this problem is to find the smallest integer satisfying the congruence 3′′≡1(mod104). This number is defined in number theory as the order (or exponent) of 3 modulo 104.