Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Find the rank of a totally balanced binary sequence
ResourceFunction["CatalanRank"][n,bin] returns the position of the given totally balanced binary sequence bin with n ones, in a particular enumeration of all such balanced sequences. |
Find the rank of a given balanced binary sequence:
In[1]:= | ![]() |
Out[1]= | ![]() |
Find all totally balanced binary sequences of length 10:
In[2]:= | ![]() |
Out[2]= | ![]() |
Find the Catalan rank of each balanced sequence:
In[3]:= | ![]() |
Out[3]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License