Ex. (1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2, this is where the pattern restarts 1,2,3,4,5,6,7,8,9,8,7,6,5,4,3,2, 1...)
So there are 16 numbers before the pattern repeats.
so it will be 1000 mod 16
1000/16=62.5 = 62 remainder 8
the 8th number in the pattern is 8
so the 1000th digit is 8