Solution 1
The prime factorization of 1001=7×11×13. We have 7×11×13×k=10j−10i=10i(10j−i−1). Since gcd(10i=2i×5i,7×11×13)=1, we require that 1001=103+1∣10j−i−1. From the factorization 106−1=(103+1)(103−1), we see that j−i=6 works; also, a−b∣an−bn implies that 106−1∣106k−1, and so any j−i≡0(mod6) will work.
To show that no other possibilities work, suppose j−i≡a(mod6), 1≤a≤5, and let j−i−a=6k. Then we can write 10j−i−1=10a(106k−1)+(10a−1), and we observe that 106k−1=(106)k−1k, which is divisible by 106−1, and thus by 103+1 (as 106−1=(103)2−12=(103+1)(103−1)). It follows that the first term is divisible by 1001, whereas we can easily verify that the second term, 10a−1, is not divisible by 1001 for 1≤a≤5, so 10j−i is not divisible by 1001 for such a.
If j−i=6,j≤99, then we can have solutions of 106−100,107−101,⋯⟹94 ways. If j−i=12, we can have the solutions of 1012−100,⋯⟹94−6=88, and so forth. Therefore, the answer is 94+88+82+⋯+4⟹16(298)=784.
Solution 2
Observation: We see that there is a pattern with 10k(mod1001).
100≡1(mod1001)
101≡10(mod1001)
102≡100(mod1001)
103≡−1(mod1001)
104≡−10(mod1001)
105≡−100(mod1001)
106≡1(mod1001)
107≡10(mod1001)
108≡100(mod1001)
So, this pattern repeats every 6.
Also, 10j−10i≡0(mod1001), so 10j≡10i(mod1001), and thus,
j≡i(mod6)
. Continue with the 2nd paragraph of solution 1, and we get the answer of 784.
-AlexLikeMath
Solution 3
Note that 1001=7⋅11⋅13, and note that 106≡1(modp) for prime p∣1001; therefore, the order of 10 modulo 7,11, and 13 must divide 6. A quick check on 7 reveals that it is indeed 6. Therefore we note that i−j=6k for some natural number k. From here, we note that for j=0,1,2,3, we have 16 options and we have 15,14,...,1 option(s) for the next 90 numbers (6 each), so our total is 4⋅16+6⋅215⋅16=784.
~Dhillonr25
Solution 4
10j−10i≡0(mod1001)⟺10j−i−1≡0(mod1001)⟺10j−i≡1(mod1001)⟺j≡i(mod6), by the same argument as in all the solutions above. If j≡i≡n(mod6) for n=0,1,2,3, there are 17 choices for each value of n, yielding 4⋅(217)=544. However, if n=4,5, there are only 16 choices, giving us 2⋅(216)=240. So, our final answer is 544+240=784. ~Puck_0