Show worked solution
Worked solution
Count all possible PINs
4 digits, 0-9, repeats allowed.
Work it out
So there are 10000 PINs in total.
'At least one repeat' is hard directly
It is easier to count PINs with NO repeat, then subtract.
'No repeat' means all different
Count PINs where every digit is different.
First digit
Any of 10 digits.
Second digit
9 remain.
Third digit
8 remain.
Fourth digit
7 remain.
Count all-different PINs
Multiply the choices.
Work it out
So there are 5040 PINs with no repeat.
Use the subtraction principle
At least one repeat = total minus no-repeat.
Subtract
Take the no-repeat count away.
Work it out
So there are 4960 PINs with at least one repeat.
Why subtract
Counting the no-repeat PINs is far easier than counting the repeats directly.
State the answer
So there are 4960 PINs with at least one repeated digit.