P, Q, R, and S are four towns. One can travel between P and Q along 3 direct paths, between Q and S along 4 direct paths, and between P and R along 4 direct paths. There is no direct path between P and S, while there are a few direct paths between Q and R, and between RandS.OnecantravelfromPtoSeitherviaQ,orviaR,orviaQfollowed by R, respectively, in exactly 62 possible ways. One can also travel from Q to R either directly, or via P, or via S, in exactly 27 possible ways. Then, the number of direct paths between Q and R is:
Correct Answer :
7
Solution :
The correct option is 7.
To find the number of direct paths between towns Q and R, we can define the variables and represent the connections between the towns mathematically. Let:
- be the number of direct paths between P and Q, so .
- be the number of direct paths between Q and S, so .
- be the number of direct paths between P and R, so .
- be the number of direct paths between P and S, so .
- be the number of direct paths between Q and R.
- be the number of direct paths between R and S.
Step 1: Formulate the first equation using paths from P to S
According to the problem, one can travel from P to S either via Q, or via R, or via Q followed by R, in exactly 62 possible ways. We can express the number of ways for each route as follows:
1. Path via Q (P → Q → S):
ways.
2. Path via R (P → R → S):
ways.
3. Path via Q followed by R (P → Q → R → S):
ways.
Summing these options gives the total number of ways to travel from P to S:
Subtracting 12 from both sides, we get:
— (Equation 1)
Step 2: Formulate the second equation using paths from Q to R
The problem states that one can travel from Q to R either directly, or via P, or via S, in exactly 27 possible ways:
1. Directly (Q → R):
ways.
2. Via P (Q → P → R):
ways.
3. Via S (Q → S → R):
ways.
Summing these options gives the total number of ways to travel from Q to R:
Subtracting 12 from both sides, we get:
From this, we can express in terms of :
— (Equation 2)
Step 3: Solve the system of equations
Substitute Equation 2 into Equation 1:
Multiply both sides by 4:
Expand the terms:
Simplify and rearrange the equation into a standard quadratic form:
Solve the quadratic equation by factoring:
This yields two potential solutions:
or
Since the number of paths between towns must be a non-negative integer, we discard the fractional value. Thus:
Substituting back into Equation 2 confirms that , which is also a valid integer.
Therefore, the number of direct paths between Q and R is 7.
Access expert-curated educational resources and study materials—completely free.
Create, conduct, and manage professional online assessments with Mindyard. Perfect for teachers and institutes.
Copyright © 2026 Mindyard. All Rights Reserved.