image
Almost all of you people are familiar or even madly in love with Fibonacci numbers.But in this post I will introduce you to another sequence of numbers known as Catalan numbers which like the Fibonacci numbers crop up in many unexpected areas!!By reading this post you'll surely be answer questions like what to do if you don't have spare change at hand and the number of possible restricted random walks :D
The Catalan sequence is a sequence of numbers where where is the -th Catalan number, The first few Catalan numbers are :-
The number of sequences of terms that can be formed by using number of s and number of s whose partial sums satisfy for equals the n-th Catalan number.
Let us call a sequence of number of s and number of s to be acceptable if it satisfies the above condition and unacceptable otherwise.We denote the number of acceptable sequences by and the number of unacceptable sequences by .
The total number of sequences of s and s can be regarded as a permutations of objects with two different types with different objects of one type and of the other.So the total number of such sequences is
Now we will calculate by first calculating .We will try to find a bijection. Let us consider an unacceptable sequence of s and s.So in case there must exist a smallest for which the partial sum is negative.Now as we have considered to the smallest of such numbers,there must be an equal number of s and s preceding !So we must have and . So k is an odd integer!!and among the terms there are number of s and number of s.Among the remaining terms,that is, (a{k+1},....,a{2n}) we have number of s and number of s.
Now we have the most important part of the argument.Let us reverse the signs of each of the first terms.,that is we replace by for each but we leave unchanged the remaining terms .Now this new sequence obtained say will have s and s in the first terms and but the rest of the terms will have the same number of s and s as that of the previous sequence. So total number of s in this sequence is . The total number of s is . So for is simply a sequence of s and s!!Also we can notice further that for any sequence of s and s there must be a point where the number of s exceed the number of s .There has to be such a point as the number of s are more!!Reversing the signs upto that point results in an unacceptable sequence.So we have found a bijection between the number of unacceptable sequences and the number of sequences of s and s.Clearly the number of sequences of s and s is .By bijection, this is also equal to the number of unacceptable sequences!!!So the total number of unacceptable sequences .
So the number of acceptable sequences is :
So is the -th Catalan number!!!
Now that you have understood this lets have some fun and play with this idea!!
There are people in a line to buy candy.Of the people, have 50 cents and have bills.But the shopkeeper stupidly begins with an empty cash register.In how many ways can the people line up so that whenever a person with buys a candy the cash register has a 50 cent piece to make change.
img
In this case we consider that people are indistinguishable.So we simply have a sequence of cent pieces and n bills.We can easily consider the 50$ pieces as s and the 1$ pieces as s,then this problem falls directly under the result of the above theorem.So by the given theorem the number of possible arrangements is the n-th Catalan number..
A person works blocks north and blocks south of her residence.Every day he has blocks to walk.How many routes are possible if he never crosses the diagonal line from home to office.
imgrandomwalk
Clearly each acceptable route is either above the diagonal or below the diagonal and both of these paths are symmetric.So we calculate the number of paths above the diagonal and multiply it by 2.Each route is a sequence of n northerly blocks and n easterly blocks.We identify north with and east with .Each route corresponds to a sequence of ns and n s .But in order that the route not dip below the diagonal,we must have for .So the theorem the number of acceptable routes above the diagonal equals the n-th Catalan number and the total number of acceptable routes is .The diagram shows all the possibilities for .Notice that it is equal to .
If you have any questions or suggestions feel free to post in the comment box.Have a nice day and stay tuned for my next post!! :)
Easy Math Editor
This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.
When posting on Brilliant:
*italics*
or_italics_
**bold**
or__bold__
paragraph 1
paragraph 2
[example link](https://brilliant.org)
> This is a quote
\(
...\)
or\[
...\]
to ensure proper formatting.2 \times 3
2^{34}
a_{i-1}
\frac{2}{3}
\sqrt{2}
\sum_{i=1}^3
\sin \theta
\boxed{123}
Comments
Thanks! Your notes are as awesome as ever!
Log in to reply
Thanks a lot!!!
This really helped me
example 1 is best one for its marvelous application. . ..nice contribution from u.....
Log in to reply
Thanks!
This was really great. Well done dude :)
Log in to reply
Thanks :)
Hey mate, I love Your notes. They are really awesome! But sometimes I have a difficulty in digesting some things..its not your fault!..here can you tell me what is this funda of +1s and -1s?
Log in to reply
It means we are trying to arrange a collection of n number of +1s and n number of -1's in such a way that the sum of any k consecutive terms starting from the first term will always be ≥0 for all integer k≤n.This happens to be the nth Catalan number.If you still have doubt feel free to ask.