The numbers $1447$, $1005$, and $1231$ have something in common. Each is a four-digit number beginning with $1$ that has exactly two identical digits.
How many such numbers are there?
I have check all the possible cases satisfying the require condition are $$11xy,\qquad 1x1y,\qquad1xy1\qquad 1xxy,\qquad1xyx,\qquad1yxx.$$
maybe I am missing something. Can anyone help from here?
Your cases look good.
There are $9 \cdot 8$ numbers of each of your cases ($x$ can be any digit but 1, so 9 choices, and $y$ can be any digit but 1 or x, so 8 choices). So the total is $$\underbrace{9 \cdot 8}_{11xy}+\underbrace{9 \cdot 8}_{1x1y}+\underbrace{9 \cdot 8}_{1xy1}+\underbrace{9 \cdot 8}_{1xxy}+\underbrace{9 \cdot 8}_{1xyx}+\underbrace{9 \cdot 8}_{1yxx}=6\cdot 9 \cdot 8=432$$ numbers.