#Combi question (reminds Catalan numbers)
191 messages · Page 1 of 1 (latest)
- Do not ping the Moderators, unless someone is breaking the rules.
- Do not ping the Helper Moderators, unless there is a conflict between helpers.
- Do not ping other members randomly for help.
- Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
- Wait patiently for a helper to come along.
- If the Helper has answered your question, remember to thank them with the Mathematics Ranks bot and close the thread with:
+close
Feel free to nominate the person for helper of the week in #helper-nominations
If you're happy with the help you got here, and the server overall, you can contribute financially as well:
Reminds me Catalan numbers.
any ideas yet?
no, not really
did you the :
- induction
- using generating functions in some way
(2) is very useful in these kinds of problems
correlate H with up and T with down
draw out relevant lattice walks (what I'm saying is very vague, I don't want to spoil it for you)
@rotund canyon I tried solkving the problem with generating functions, and didn't find much success. I also tried lattice walks, and wanted to prove the answer like we did with Catalan numbers. That didn't work as well since the function from the walks I defined isn't surjective (I tried flipping the path after walking up/ right the second time we cross y=x line)
I am really lost right now
I think the answer is H_n = 2C_n
when C_n is the nth catalan number, and H_n is the number of legal series
did you try small values
@rotund canyon can you give me a hint?
about how to use generating functions
or lattice walks
in a bit if that's okay
by a bit I mean quite some time I'm studying for an exam right now sorry
all good, good luck!
walks that are like the mountains that touch the x axis only once between the start and the end
this is how you set it up
@autumn rover
try a similar recurrence like the catalan thing
but with paths that never touch the x axis
except at the ends ofc
@rotund canyon I still can't figure it out. I guess it is about flipping the ends of the extra mountains, but I can't figure out how to count it or even what function I should use to flip the illegal ends
@autumn rover
Hello silverlionag, this is a friendly reminder that your help request has been inactive for more than 24 hours. If you no longer need assistance, please consider closing the thread using the +close command. This thread will be automatically closed in 3 days if it remains inactive.
@rotund canyon The user still needs help with this help request.
can you connect the mountains to catalan numbers yet?
but can't find how to create a function that will get me a real connection between those two.
(up down) --> (up right)
y>0 y>x
does this work
No, because it also counts paths that go under x axis
and we got rid of that by creating a function that "flips" the path from the first point that touches y=-1
above or below
I understand that if we can count all the legal paths, we multiply the ones with two mountains by four and the ones with 1 mountain by two
but I can't figure out how to count them with Catalan
because catalan also counts paths with more than two mountains
we did Catalan with mountains
is that an issue?
that's what I am trying to solve
oh wait
@autumn rover I am so sorry I have been wrong the whole time for 2 days atleast
I completely missed the fact that we might have reisha(s) in between the sequence too
I was only accounting for the reishas starting from the front
give me 10 minutes or so I'll be back ASAP
I'm back
oh never mind It does start from the first
I wasn't wrong then
Associate H with up T with right
If we start with H (up) from (0,0) the origin then we can't ever touch the y=x line except at (n, n)
If we start with T (right) what happens? @autumn rover
the catalan thing is associated with paths that don't cross the line but we don't even allow touching
clearly we see that the last term must be a T if we start with a H (why)?
what?
Catalan paths can touch the line
yeah they can touch but don't cross
right
This is not true
I think
Think of it from the walk perspective
if we are always above y=x how can we approach it from below?
and then you can go above
so we mush approach it from the right
yes
after you touch it for the first time
mhm
and that's legal
now we enumerate sequences starting with H
instead of working with the line y=x, look at the line y=x+1
does it ring a bell?
as we can never touch y=x, are always either above y=x+1 or we may touch it
the idea is :
we know the path ends in a right and starts with an up
you can get to x+1 even if you start with T
so we might as well ignore these two bits
and look at the path in between with respect to y=x+1
take some examples
and you'll see
I don't understand why it works
like you can do T,H,H
and get to y = 1
@rotund canyon
currently we are talking about the paths starting with H
wait
and each sequence has 2n moves so take 4 of them into account
H is up or down?
how are you here while playing among us
reread from here
oh
we are counting the amount of paths that have one mountain
@rotund canyon
and that is 2C_n
right
but what about paths that have two mountains?
oh
I get it
no
wait
I don't
hold on
let me read it again
oh
I got it
yeah
thank you
@rotund canyon
Can you check my reasoning
?
First of all, we count all of the paths that have no mountains
this is 2C_n-1
since what we proved
then we count the amount of paths with one mountain
which is 4C_n
because we choose one intersection with y=x
and then we get the sum of H_n-k-1 * H_k
from k=0 till k=n-1
and that's why the amount of ways is 2C_n-1 + 4C_n
yes
kk
wdym by one mountain
thank you @rotund canyon !
the answer is 2Cn-1
since the reisha doesn't include 2n
(w1, w2,..., wk)
it doesn't include the whole series
not (wm,wm+1,...,wk)
so the only thing is if you start with H, the number of H you encountered is strictly > Ts
(HHTT) bas the same number of Hs and Ts
right, and it's legal
because 0<k<2n
HHTTHT isn't
There are only two balanced reishas
one for k=4
and the second is the whole series
and since we have at most 1 reisha that is balanced and is not the whole series, this is legal
@rotund canyon
Okay so we counted the ways for it to have no reishas
now count the way to have exactly one
join two of the previous types together
so what is your question
I just wanted you to check if my way is correct, and what can I do to write more structured proofs
because I feel like if I would have done that in my exam, the professor would have taken off points.
can you write up the whole thing and send it here?
ill check it
+close
Please thank the helpers who assisted you by clicking the buttons below. You can thank each helper only once. Once you're done, click "Close Post" to close this thread.
Thank you for your feedback! Coffey [\asymp] has been awarded 1
. They now have 41
. They have 3
daily left for today.