Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Combinatorics functions for subsets, tuples, and permutations
Contributed by: Peter Cullen Burbery
This paclet is for Project Euler problems and other applications of combinatorics.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["PeterBurbery/Combinatorics"]
To load the code after installation, evaluate this code:
Needs["PeterBurbery`Combinatorics`"]
Find the millionth permutation with 10 items:
In[1]:= | ![]() |
In[2]:= | ![]() |
Out[2]= | ![]() |
To solve the challenge Lexicographic permutations at Project Euler, subtract 1 and join the digits with FromDigits:
In[3]:= | ![]() |
Out[3]= | ![]() |
The googolth 111-tuple:
In[4]:= | ![]() |
Out[4]= | ![]() |
Find some binomial representations for the number 403:
In[5]:= | ![]() |
Out[5]= | ![]() |
Wolfram Language Version 13.3
BSD 3-Clause "New" or "Revised" License