Implement the partition function – mathematica.stackexchange.com

I am trying to write my own version of the PartitionsP function. Here is my code P[1, 1] = 1; P[n_, k_] := With[{x = n - k}, If[x == 0, 1, If[x <= k, Sum[P[x, i], {i, 1, x}], Sum[P[x, i], ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Implement the partition function – mathematica.stackexchange.com"