Contest Problem Let N be the set of positive integers whose decimal representation
is of the form 4ab4 (for example: 4174 or 4004). If a number x is
picked randomly from N, what is the probability that x is divisible
by 6, but not divisible by 12?
I got an answer of $\frac{17}{100}$.  Could you someone verify that for me.

$N$ has $100$ members.
Every member $x$ of $N$ is divisible by $2$;  it is divisible by $3$ (and therefore by $6$) iff $a+b \equiv 1 \mod 3$.  Of these, $x$ is divisible by $12$ iff $b$ is even.  There are three cases $(b = 3, 5, 9$) with $b$ odd and three possible $a$'s ($a = 1,4, 7$ for $b = 3$ or $9$, $a = 2,5,8$ for $b=5$), and two ($b = 1, 7$) with $b$ odd and four possible $a$'s ($a = 0, 3, 6, 9$), for a total of $3 \times 3 + 2 \times 4 = 17$.  
So the probability is indeed $17/100$.   
