Birthday Paradox

N represents the number of different options (days of the year). The graph plots the probability of failure to find a duplicate as a function of the number $n$ of tries (people) in red, and the approximation $e^{-n^2/2N}$ in blue. It graphs it in the window up to $4 \sqrt{N}$.