I don't understand why the probability of a random samplen= 3 is selected fromNwith replacement.

is P=1/N^2 when hat the sample contains the same unit three times;

and P= 3*(N-1)/ N^2 and for two distinct units;

and P=(N-1)(N-2)/ N^2 three distinct units.

Thanks for your help