If n gives a remainder of 3 when divided by 7, then what remainder does n^2+1 give when divided by 7?
lets say n = 10
101 / 7 = 14 R 3