ABCXABCX = 10001 * ABCX
10001= 73 * 137
ABCX has factor 5 if and only if X is 5 or 0.
When ABCX is divisible by 5, that's when 10001 * ABCX is divisible by 73 * 5 = 365.
blackjack
flooble's webmaster puzzle