First we'll calculate the number of ALL 4-digit numbers that can be made with them. Then we'll calculate and subtract the number of 4-digit numbers that don't have any of the digits identical.
To find all possible 4-digit numbers that can be made.
1. There are 54 ways =625 ways to choose the 1st4 digits, which is all of them.
Now we must subtract the number of ways in which there are no two digits alike =5! ways =120 ways to choose the 1st4 digits, which is all of them.
So ⇒=625−120=505