The question is:
A partical moves in a the xy plane according to the following moves:
U :(m, n) → (m + 1, n + 1) (1)
L :(m, n) → (m + 1, n − 1), (2)
How many paths from (5, 5) to (30, 10) never touch or cross x−axis?
My reasoning is that we should calculate all the paths that touch or cross the x-axis, and substract the number from the total paths. There are total 25 steps, and there are 15 U's and 10 L's. I have divided this into different cases where the paths will touch the x-axis:
If the path begins with LLLLL
If the path has 6 L's and 1 U as the first 7 steps.
If the path has 7 L's and 2 U as the first 9 steps.
If the path has 8 L's and 3 U as the first 11 steps.
If the path has 9 L's and 4 U as the first 13 steps.
If the path has 10 L's and 5 U as the first 15 steps.
I have added all the cases and the number of paths that I got is 83 682. I know that I need to use the inclusion-exclusion principle since there will be duplicates. How do I use the principle and substract the duplicates?