(nk)! / (k!)^n
n^(nk + 1/2)
As I go along with "Concepts, Techniques and Models of Computer Programming by Peter Van Roy and Seif Haridi", I'll be putting my thoughts and solution to the exercises(ones that I'm able to crack :) ) here. Please let me know if any of the code snippets presented in solutions give errors as I might have made a mistake in correctly copying the code or something else.