David W. answered 11/16/16
Tutor
4.7
(90)
Experienced Prof
There are 10,000 values from 0000 to 9999.
Of those, 5040 do not have multiples of the same digit. That is calculated as:
10*9*8*7 = 5040
The word "beginning with a number greater than 7" mean numbers in the range of 8012 to 9876 [remember, no repeats]. There are 1008 of those, calculated as 5040/5 [because 8-9 is 2 digits, which is 1/5th of the 10 digits from 0-9].
Now, "probability" is defined as (the number of successful outcomes) / (the number of possible outcomes). There is no probability in this problem unless a 4-digit code is randomly selected from the allowable codes. If that is the case, then:
P(code beginning with 8 or 9) = 1008 = (1/5)(5040) = (1/5)(10!)/((10-4)!)