Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

LittleChildPaclet

Guides

  • Assumptions and Domains
  • Linguistic Data
  • Number Digits
  • Prime Numbers
  • Start Here Wolfram Challenge Functions
  • String Patterns
  • Wolfram Challenges Algorithms
  • Wolfram Challenges Computational Knowledge
  • Wolfram Challenges Geography
  • Wolfram Challenges Mathematics
  • Wolfram Challenges Words and Linguistics
  • Working with Sequences

Symbols

  • AliquotSequence
  • AlmostPalindrome
  • Anagrams
  • AntipodalCity
  • AntipodeAboveSeaLevelQ
  • BabbageSquares
  • BalancedParentheses
  • BalancedTernary
  • ButterflyString
  • CaesarDecrypt
  • CatalanUnrank
  • Coins
  • CompleteDictionary
  • DigitalRoot
  • FizzBuzz
  • IntegerPalindromeQ
  • MaxRomanLength
  • MaxRomanNumeralValue
  • NonNegativeIntegerQ
  • NumberTriangle
  • OddBeforeEven
  • PairsAddToHundred
  • PositiveIntegerQ
  • RepeatandEndingPrimes
  • SameStartEndWords
  • SayHello
  • SquareSum
  • StringPatternQ
  • ThreeFive
  • ToMorseCode
  • TwoAndThreePointers
  • WordListLookup
PeterBurbery`LittleChildPaclet`
CatalanUnrank
​
CatalanUnrank
[n,rank]
gives the totally balanced binary sequence with n ones and the given rank.
​
Details and Options

Examples  
(2)
Basic Examples  
(1)
Here is the number of totally balanced binary sequences with five 1's:
In[1]:=
CatalanNumber[5]
Out[1]=
42
Use CatalanUnrank to find the 20th totally balanced binary sequence with five 1's:
In[2]:=
CatalanUnrank
[5,20]
Out[2]=
{0,0,1,0,1,0,1,1,0,1}
Show all totally balanced binary sequences with five 1’s:
In[3]:=
CatalanUnrank
[5,#]&/@Range[0,CatalanNumber[5]-1]
Out[3]=
{{0,0,0,0,0,1,1,1,1,1},{0,0,0,0,1,0,1,1,1,1},{0,0,0,0,1,1,0,1,1,1},{0,0,0,0,1,1,1,0,1,1},{0,0,0,0,1,1,1,1,0,1},{0,0,0,1,0,0,1,1,1,1},{0,0,0,1,0,1,0,1,1,1},{0,0,0,1,0,1,1,0,1,1},{0,0,0,1,0,1,1,1,0,1},{0,0,0,1,1,0,0,1,1,1},{0,0,0,1,1,0,1,0,1,1},{0,0,0,1,1,0,1,1,0,1},{0,0,0,1,1,1,0,0,1,1},{0,0,0,1,1,1,0,1,0,1},{0,0,1,0,0,0,1,1,1,1},{0,0,1,0,0,1,0,1,1,1},{0,0,1,0,0,1,1,0,1,1},{0,0,1,0,0,1,1,1,0,1},{0,0,1,0,1,0,0,1,1,1},{0,0,1,0,1,0,1,0,1,1},{0,0,1,0,1,0,1,1,0,1},{0,0,1,0,1,1,0,0,1,1},{0,0,1,0,1,1,0,1,0,1},{0,0,1,1,0,0,0,1,1,1},{0,0,1,1,0,0,1,0,1,1},{0,0,1,1,0,0,1,1,0,1},{0,0,1,1,0,1,0,0,1,1},{0,0,1,1,0,1,0,1,0,1},{0,1,0,0,0,0,1,1,1,1},{0,1,0,0,0,1,0,1,1,1},{0,1,0,0,0,1,1,0,1,1},{0,1,0,0,0,1,1,1,0,1},{0,1,0,0,1,0,0,1,1,1},{0,1,0,0,1,0,1,0,1,1},{0,1,0,0,1,0,1,1,0,1},{0,1,0,0,1,1,0,0,1,1},{0,1,0,0,1,1,0,1,0,1},{0,1,0,1,0,0,0,1,1,1},{0,1,0,1,0,0,1,0,1,1},{0,1,0,1,0,0,1,1,0,1},{0,1,0,1,0,1,0,0,1,1},{0,1,0,1,0,1,0,1,0,1}}
Neat Examples  
(1)

SeeAlso
"XXXX"
RelatedGuides
▪
Wolfram Challenges Algorithms
RelatedLinks
Resource Function CatalanUnrank
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com