there are 41 students in a class , number of girls is one more than number of guys . we need to form a team of 4 students . all 4 in the team can not be from same gender . number of girls and guys in the team should not be equal . how many ways can such a team be made ?
boys = 20 and girls = 21 now the combinations are { girl , girl , girl , boy } or { boy , boy , boy , girl } so 21 c 3 * 20 c 1 + 20 c 3 * 21 c 1 = 50540 ways answer : a
add(multiply(divide(divide(factorial(subtract(41, floor(divide(41, const_2)))), factorial(subtract(4, const_1))), factorial(subtract(subtract(41, floor(divide(41, const_2))), subtract(4, const_1)))), floor(divide(41, const_2))), multiply(divide(divide(factorial(floor(divide(41, const_2))), factorial(subtract(floor(divide(41, const_2)), subtract(4, const_1)))), factorial(subtract(4, const_1))), subtract(41, floor(divide(41, const_2)))))