in reply to Re: How can I get correct result in counting 3-letter words?
in thread How can I get correct result in counting 3-letter words?

I prefer the function "variations_with_repetition" in the module Algorithm::Combinatorics rather than the do-it-yourself approach of generating the $k's.
  • Comment on Re^2: How can I get correct result in counting 3-letter words?