Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How many 4 digit pins on set {0-9}

Writer Olivia Zamora
$\begingroup$

A password can be any 4 digit {0...9}.

1.)How many possible passwords are there?

for this I did $10^4 = 10,000$

2.) How many possible passwords with no repeated digits?

$10*9*8*7 = 5040$

3.) How many possible passwords are there with repeated digits?

For this do I just subtract 10,000-5040?

Edit: typos. Thanks everyone.

$\endgroup$ 3

2 Answers

$\begingroup$

community wiki answer so the question can be closed

Your solutions to the first two questions are correct.

Yes, to find the number of passwords with repeated digits, you subtract the number of passwords with no repeated digits from the total, so there are $10000 - 5040 = 4960$, as you found.

$\endgroup$ 0 $\begingroup$

For question 2, if you don't consider $0$ as a possible digit for the first number (because then it would be a 3 digit number, rather than a 4 digit number), then the answer is $9*9*8*7 = 4536$.

$\endgroup$

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy