Remark. Testing for divisibility by 2 and 5 [00ER]

This also shows why for 2 and 5 we can just look at the last digit: since 2 and 5 are both divisors of 10, we have 10 \equiv _2 0 and 10 \equiv _5 0. So replacing 10 with 0 in the expansion for n tells us that n \equiv _2 d_0 and n \equiv _5 d_0.