Using 0-9 - Five Digits - One of the digits being repeated.
Math term clarification:
Combination - a group of terms in any order ( e.g. 123, 231, 312, 132, 213, 321)
Permutation - a group of terms in SPECIFIC order. (e.g 231)
What is commonly called Combination for a safe is really a mathematician’s permutation.
Start with FOUR UNREPEATED DIGITS - Results in 5040 possible permutations. ( 10 * 9 * 8 *7 )
Now we need to add the FIFTH digit which is one of the FOUR in each permutation.
Results in 20,160 possible permutations.
Each of the 5040 four digit permutations can have any one of the FOUR digits repeated.
Warning: A Mathematician explaining this would invoke factorials in his calculations.
Bekeart