Solving combination generation