Partition function by jbb

p={0,1};(1..100).map{|n|puts"p(#{n})=#{p[n]=(-9..8).map{|k|(-1)**k*(p[n-k*(3*k-1)/2]||0)}.inject:-}"}

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

download

return top