number of partitions into k terms for HeadHunter programmers school