Partition function by teebee(nn)

dim p(100,100)
for n=1to 100a=1
for k=0to n
a=a+p(n-k,k)
p(n-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