Calculate set partitions with specific group sizes | Hacker News Reader