PINs generated until the first duplicate
A generator produces random -digit PINs, each uniform over codes, independently, one after another. It stops the moment it produces a PIN it has already produced.
On average, how many PINs does it generate before the first duplicate?