Combinatoric Problem: Path to [20,30]

  • Thread starter Thread starter David Waiter
  • Start date Start date
  • Tags Tags
    Combinations
AI Thread Summary
The discussion revolves around calculating the number of paths from the point [0,0] to [20,30] on a square grid while avoiding specific forbidden points: [5,5], [15,10], and [17,23]. The initial solution proposed uses the principle of inclusion and exclusion to account for the paths that pass through these restricted points. However, there is confusion regarding the double counting of the point [15,10], which is mentioned twice. The principle of inclusion and exclusion is clarified as involving alternating sums to accurately count the valid paths. The conversation emphasizes the importance of correctly identifying and managing overlapping restrictions in combinatorial problems.
David Waiter
Messages
2
Reaction score
0
We have a square grid. In how many ways we get to the point [20,30], if we can not get points [5,5], [15,10] [15,10] [17,23]? The starting point is [0,0], we can only move up and to the right. Thanks

My solutions:
$$ \binom{50}{20} - \binom{10}{5}\binom{40}{15} - \binom{25}{10}\binom{25}{10} -\binom{25}{15}\binom{25}{5}-\binom{40}{17}\binom{10}{3}$$
 
Physics news on Phys.org
I moved the thread to the homework forum.

You are subtracting some paths more than once, e. g. every path that passes both through [5,5] and [15,10]. One [15,10] should be [10,15] I guess?
 
Yes, I use the principle of inclusion and exclusion
 
So where do you consider the double-counting I mentioned?
 
David Waiter said:
We have a square grid. In how many ways we get to the point [20,30], if we can not get points [5,5], [15,10] [15,10] [17,23]? The starting point is [0,0], we can only move up and to the right. Thanks

My solutions:
$$ \binom{50}{20} - \binom{10}{5}\binom{40}{15} - \binom{25}{10}\binom{25}{10} -\binom{25}{15}\binom{25}{5}-\binom{40}{17}\binom{10}{3}$$

You have included [15,10] twice in your list of forbidden points. What did you really mean?
 
David Waiter said:
Yes, I use the principle of inclusion and exclusion
The principle of inclusion and exclusion leads to expressions with both plus and minus signs, usually alternating. This is because you subtract out all the cases ruled out by each single criterion, then add back all that you have subtracted twice over because they were ruled out by two criteria, then add back in all that you've added back in too often because they were ruled out by three criteria, and so on.
 
Since ##px^9+q## is the factor, then ##x^9=\frac{-q}{p}## will be one of the roots. Let ##f(x)=27x^{18}+bx^9+70##, then: $$27\left(\frac{-q}{p}\right)^2+b\left(\frac{-q}{p}\right)+70=0$$ $$b=27 \frac{q}{p}+70 \frac{p}{q}$$ $$b=\frac{27q^2+70p^2}{pq}$$ From this expression, it looks like there is no greatest value of ##b## because increasing the value of ##p## and ##q## will also increase the value of ##b##. How to find the greatest value of ##b##? Thanks
Back
Top