Imagine you have the number X and want to know how many combination with Y summands there are? And also these summands can only be between a - b? Then you can use this tool like this:
a = The sum of your wanted number (For example 22
)
b = The summands there are to make this sum (For example 6
)
c = A list of numbers the summands can be choosen of (For example [1, 2, 3, 4, 5, 6]
)
results = P(a, b, c), ignoreOrder=True)
print(len(results))