[Math] Counting four-digit numbers with repeating digits

combinatoricsfractionspermutations

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?

Best Answer

Usual tricks to get started for any problem

  • Try a simpler problem
  • Try brute-force calculation
  • Look for other problems that this one resembles

Have you any ideas on how to do any of these three things?

For counting problems in particular, one trick that is:

  • Try counting the complement: how many things are there in all, and how many aren't the kind of thing you're looking for?

If you are having any troubles at all, it's nearly always worth at least writing down the complementary problem to see if it offers any inspiration.