N is a four-digit positive integer. Dividing N by 9 , the remainder is 5. Dividing N by 7, the remainder is 5. Dividing N by 5, the remainder is 1. What is the smallest possible value of N?
N mod 9 ==5
N mod 7 ==5
N mod 5 ==1
LCM(5, 7, 9)==315
N ==315m + 131, where m==0, 1, 2, 3.........etc.
N==[3 x 315] + 131 ==1,076 - is the smallest possible value of N