I would like some help in finding the divisibility tests for when integers are divisible by 4 and 8.

The hint given in the book is to write the integer as:

N=100M+10P+R=10P+R (Mod 4). I'm unclear about where this comes from or how it helps me in answering the question. Help would be greatly appreciated.