Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Return the tuple corresponding to a given index
ResourceFunction["TupleFromIndex"][index,k] returns index from the list of integer k-tuples sorted by maximal element. |
Create 2-tuples from their index:
In[1]:= |
Out[1]= |
The first nine 2-tuples sorted by maximal element:
In[2]:= |
Out[2]= |
Create 3-tuples from their index:
In[3]:= |
Out[3]= |
The function can return tuples of a given index for various lengths:
In[4]:= |
Out[4]= |
Find the trillionth k-tuple for several values of k:
In[5]:= |
Out[5]= |
Use Tuples to produce 3-tuples sorted by maximal element:
In[6]:= |
Out[6]= |
TupleFromIndex returns the same tuples in the same sequence:
In[7]:= |
Out[7]= |
The googolth 6-tuple:
In[8]:= |
Out[8]= |
The googolth 111-tuple:
In[9]:= |
Out[9]= |
This work is licensed under a Creative Commons Attribution 4.0 International License