L. Edson Jeffery: > The above should not require loading the Combinatorica package, but it > seems to not work correctly without it. This may be a bug in Mathematica. Compositions[n,k] *is* a Combinatorica package symbol and is undefined without that package.