(50G) Partition of Integer N in M Parts
|
10-09-2016, 02:47 PM
(This post was last modified: 06-15-2017 01:40 PM by Gene.)
Post: #1
|
|||
|
|||
(50G) Partition of Integer N in M Parts
For stack
N M both positive integers the programme returns the number of partitions of N into at most M parts. For more info see https://en.wikipedia.org/wiki/Partition_(number_theory) eg For input 30 19 the programme returns 5465 in 3.9 seconds. Code:
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(50G) Partition of Integer N in M Parts - Gerald H - 10-09-2016 02:47 PM
|
User(s) browsing this thread: 1 Guest(s)