Partition function by nn

enum X{_;{int[]p=new int[11000];for(int n=0,a,k;n++<100;System.out.println("p("+n+")="+a))for(a=1,k=n;k>0;)p[100*k+n]=a+=p[99*k--+n];}}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page