prob78(N)= { \\ as with 76, this is sort of cheating, i guess... \\ this problem is the definition of integer partitions (http://oeis.org/A000041) \\ which are built into pari as the "numbpart" function n = 5; v = numbpart(n); print(v); while (v % N, n++; v = numbpart(n); ); print1 (n); print1 (" -> "); print(v) }