// *Partition Of Number* idea by K. M¹czyńska, polished by K. Bosak 1998-03-11 // kbosak@box43.pl // http://panoramix.ift.uni.wroc.pl/~bosy #include long partition(char x, char y) { x-=y; if(x<0) { y+=x; x=0; } long result=1; while(y>1) { result+=partition(x, y); x++; y--; } return result; } int main() { for(char x=1; x<121; x++) cout<(x)<<"\t"<