Function to calculate the number of partitions with groups of sizes between smin and smax
Useful links