We investigate the probability that a random composition (ordered partition) of the positive integer n has no parts occurring exactly j times, where j belongs to a specified finite ‘forbidden set’ A of multiplicities. This probability is also studied in the related case of samples Γ = (Γ1,Γ2, . . . ,Γn) of independent, identically distributed random variables with a geometric distribution. Résu...