Of all the four-digit positive integers containing only digits from the set $\{2,4,6,8\}$, what fraction of them have at least one of their digits repeating?
Express your answer as a fraction.
I'm having trouble with this exercise.
Can someone help me get started?
All the $4$-digit numbers with digits among $\{2,4,6,8\}$ are $4^4=256$. All those which do not repeat digits are $4!=24$. So those with at least one repetition are $4^4-4!=232$. Their fraction is hence $$ \frac{232}{256}. $$