Qm

The twentieth PIN is the first duplicate

PINs are issued one at a time, each a uniform random 33-digit code from 000000 to 999999 (one of 10001000 codes).

What is the probability that the twentieth PIN is the first to duplicate an earlier one? (The first nineteen are all distinct, and the twentieth matches one of them.)

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

The first shared birthday arrives on person tenThe fifth user is first to repeat a codeA die's first repeated face on the third rollThe eighth card is the first repeatFirst one's red, will all three be?
All questions →