Skip to content

ArtusLama/decomposition-of-a-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Group 3

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))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages