Given a list of variables, construct every term comprising only those
pepper() returns a free algebra object
equal to the sum of these terms.
The function is named for a query from an exam question set by Sarah Marshall in which she asked how many ways there are to arrange the letters of word “pepper”, the answer being 6!/(1!2!3!)=60.
multiset() in the
partitions package gives
Variables to combine. If a character string, coerce to variable numbers
Robin K. S. Hankin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.