5
1
Find the number of partitions of a positive integer n. Hope someone uses the explicit finite formula for the partition function defined in Jan Hendrik Brunier and Ken Ono paper here.
Sample Input
8
Sample Output
22
N is less than or equal to 1000. Write the complete program. More than anything I would like to see the different approaches.
I added a winning criterion... – Timtech – 2014-12-25T22:16:29.540
but a really deus-ex-machina one (IMO) – proud haskeller – 2014-12-25T22:59:55.440