Given n will be between 1 and 9 inclusive. Given k will be between 1 and n! inclusive.