Partition function by nn

dim p(100,100)
for n=1to 100a=1
for k=n to 0step-1a=a+p(k,n-k)
p(k,n)=a
next
?"p(",n,")=",a
next

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

download

return to the top page