N is a four-digit positive integer. Dividing N by 9, the remainder is 5. Dividing n by 7, the remainder is 2. Dividing n by 5, the remainder is 1. What is the smallest possible value of N?
divide by 9 r = 5
14 23 31 41 50 59 68 77 86
divide by 7 r = 0 2 3 6 1 3 5 0 2
divide by 5 r = 3 1