Find out a number which when divided by 7 leaves a remainder of 5, when divided by 6 leaves a remainder of 4, when divided by 5 leaves a remainder of 3, when divided by 4 leaves a remainder of 2, and when divided by 3 leaves a remainder of 1? A number when divide by 16 leaves 6 remainder, when divided by 17, leaves 7 remainder and when divided by 18 leaves 8 remainder. ID the number is N. Then what will be the remainder when M, where M=N^2 +6N+16 is divided by 12?