Solution:
The numbers that can be formed when repetition of digits is allowed are
The numbers that can be formed when all the digits are distinct when repetition is not allowed are
Therefore, the numbers that can be formed when atleast one digit is repeated
=