MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Integer Partitioning


"Kenneth J. Mascola" <76504.2375 at CompuServe.COM>
[mg4694] Integer Partitioning
Asks about partitions of integers.

Kenneth,
There is a function Partitions in the standard package  
DiscreteMath`Combinatorica` :

<<DiscreteMath`Combinatorica`

   Partitions[5]

	{{5}, {4, 1}, {3, 2}, {3, 1, 1}, {2, 2, 1}, {2, 1, 1, 1},
	  {1, 1, 1, 1, 1}
	}

Allan Hayes
hay at haystacj.demon.co.uk


==== [MESSAGE SEPARATOR] ====


  • Prev by Date: beam optics
  • Next by Date: Books
  • Previous by thread: Integer Partitioning
  • Next by thread: Re: Integer Partitioning