MathGroup Archive 2004

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

Search the Archive

Generating r-combination or r-permutations with replacement.


Is there an easy function in mathematica that generates a set/list that 
consists of r-combinations or r-permutations with replacement?

e.g. I want the set of all possible sets with 3 elements, with entries from 
{1,2,3,4}, and also the set of all possible unordered sets with 3 elements, 
with entries from {1,2,3,4}.

Any help is appreciated,

-Philip Lu 



  • Prev by Date: Re: Re: Conveniently Restarting Notebooks
  • Next by Date: Re: suggestion for frontend
  • Previous by thread: Re: Factor 2 error in Inverse Laplace Transform
  • Next by thread: Re: Generating r-combination or r-permutations with replacement.