checking the number of combinations needed for different sizes