The number of ways of breaking up a set of people consisting of 3 simple people, four pairs of twins, and two triplets (altogether 3+4*2+2*3=17 people), is 48051910 The whole thing took, 0.028, seconds