Bill Allombert on Sat, 17 Jun 2006 10:40:04 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Partitions question


On Fri, Jun 16, 2006 at 11:06:42PM -0400, McLaughlin, James wrote:
> Is there a command in pari/gp that takes a positive integer and
> outputs a list of the un-restricted partitions?

No, but there is a function 'numbpart' returning the number of such
partitions.

> Failing that, does anyone have an efficient piece of code already worked out?

I would propose this one in the PARI FAQ:
<http://www.math.u-bordeaux.fr/~belabas/pari/doc/faq.html#looppart>

Cheers,
Bill.