I have to prove that if a given positive integer n ends with digits 336, then n has to be divisible by 2, by 4 and by 8, but its not necessarily divisible by 6.
I know that a positive integer is divisible by 2 if the last digit is 0, 2, 4, 6, and 8. And because 4, 6, and are multiples of 2 they should also be divisible. However I can't find why it wouldn't be divisible by 6?
Here's my proof so far for divisibility by 2:
10 divided by 2 has a remainder of 0. So 10 ≡ 0 (mod 2). Then 10k ≡ 0 k ≡ 0 (mod 2) for k = 1, 2, 3, . . ..
so x ≡ a0 + a1 · 0 + a2 · 0 + a3 · 0 + a4 · 0 + · · · + am · 0 ≡ a0 (mod 2).
Therefore x is divisible by 2 if and only if its last digit a0 is divisible by 2, which happens if and only if the last digit is one of 0, 2, 4, 6, 8. a0 is the digit in the one's place, a1 in the ten's place etc.
If the digits before $336$ do not form a number divisble by $3$, the number is not divisible by $3$ and hence not divisible by $6$, the smallest (counter-)example is $1336$.