ita; exercise 5.4.2 - birthday problem variant