I corrected my orginal math and if I pulled the math out of my arse from the way-back machine correctly....

P(((group_size - 1) + #_of_classes) , group_size)
-------------------------------------------
group_size !


you can substitute #_of_classes with #_of_specs (27)