Problem78 solved, using Euler's generating function