Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

Re: Binomial Coefficients

  • To: mathgroup at
  • Subject: [mg5802] Re: [mg5782] Binomial Coefficients
  • From: Dave Snead <dsnead at>
  • Date: Wed, 22 Jan 1997 00:44:11 -0500
  • Organization: Saguaro Software
  • Sender: owner-wri-mathgroup at

H. Thompson wrote:
> I understand about k-permutations and 'n choose k', and while i can
> mathematically determine the max possible combinations of say a 5 character
> string
>                         n! / [k! (n-k)!]
> I have yet to successfully debug my algorithm so it produces all of the
> calculated permutations.
> Any help would be greatly appreciated.
> hrt

While Binomial[n,k] gives the number of combinations,
KSubsets[a,k] (where a is an n element set) will give you a list of
all the combinations.  It's located in the standard package: 

Dave Snead
dsnead at

  • Prev by Date: Anti-Chop Function
  • Next by Date: Re: bug in Interpolation[] of Mma 3.0
  • Previous by thread: Re: Binomial Coefficients
  • Next by thread: bug in Interpolation[] of Mma 3.0