try to see the meaning of the congruence

means

since k is already an integer >= 3 , and n must be an integer. the only way n could be integer is if is also an integer. there is only one value of

k for which this happens........

apply similar reasoning to b)