Expected duplicate-code pairs among a thousand users
Each of users is assigned a random -digit code, uniform over codes, independently.
On average, how many pairs of users end up with the same code?
Each of users is assigned a random -digit code, uniform over codes, independently.
On average, how many pairs of users end up with the same code?