{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
The numbers $1455$, $3035$ and $7735$ have something in common: each is a $4$-digit number ending in $5$ that has exactly two identical digits. How many such numbers are there?
Write the number as $\overline{abc5}$. Case 1: the repeated digit is $5$. If $a=5$, then $b,c$ are distinct non-$5$ digits: $9\cdot8=72$. If $b=5$ or $c=5$, the first digit has $8$ choices (not $0$ or $5$) and the other digit has $8$ choices (not $5$ or the first digit): $2\cdot64=128$.
Subtotal $200$. Case 2: the repeated digit $d\ne5$ fills two of $a,b,c$. For $a=b$ or $a=c$, $d$ has $8$ choices and the third digit $8$, giving $2\cdot64=128$.
For $b=c$, $d=0$ gives $8$ choices of $a$, and $d\ne0$ gives $8\cdot7=56$, for $64$. Subtotal $192$. Total $200+192=392$.