gen_multiplicity_3