Message Boards Message Boards


How to find combinations of letters?

Posted 9 years ago
2 Replies
1 Total Likes

Hello everyone,

I am required to find the list of all the combinations of certain length of letters. I found the Permutations function but I did not find any function for finding the list of combinations. Please help me. I am a new user of Mathematicia. Thank you.

Regards, Azhar Uddin Mohammed

2 Replies

Thank you sir. It worked. :)

Perhaps make use of the Subsets function? For example, here are the subsets of the list {a, b, c, d} of exactly length 2

In[1]:= Subsets[{a, b, c, d}, {2}]

Out[1]= {{a, b}, {a, c}, {a, d}, {b, c}, {b, d}, {c, d}}
POSTED BY: David Reiss
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract