Equation of side AB is 2x+y=0⇒y=−2x, so its slope is mAB=−2.
Equation of side CA is x−y=3⇒y=x−3, so its slope is mCA=1.
Equation of side BC is x+py=15a (slope will be obtained later).
Vertices are obtained by intersecting pairs of sides:
A is the intersection of AB and CA.
From y=−2x and y=x−3, we get −2x=x−3⇒3x=3⇒xA=1,yA=−2.
C is the intersection of CA and BC.
From x−y=3⇒x=3+y and x+py=15a:
3+y+py=15a⇒yC=1+p15a−3,
xC=3+yC=3+1+p15a−3.
B is the intersection of AB and BC.
Using y=−2x in x+py=15a:
x−2px=15a⇒xB=1−2p15a,yB=−1−2p30a.
The orthocentre is given as H(2,a). Altitudes pass through H and the corresponding vertex, and each altitude is perpendicular to the opposite side.
Case 1: Altitude from C (perpendicular to AB)
Slope of AB is −2, hence the altitude through C has slope 21.
Therefore, 2−xCa−yC=21.
Substituting yC,xC:
2−(3+1+p15a−3)a−1+p15a−3=21.
Simplifying numerator and denominator gives
2−p−15aa(p−14)+3=21,
which reduces to
a(2p−13)+p+4=0−(1).
Case 2: Altitude from B (perpendicular to CA)
Slope of CA is 1, so the perpendicular slope is −1.
Thus 2−xBa−yB=−1.
Substituting yB,xB:
2−1−2p15aa+1−2p30a=−1.
Simplifying gives
a(8−p)−2p+1=0−(2).
From (2), solve for a:
a=8−p2p−1,p=8.
Substitute this value of a into (1):
(2p−1)(2p−13)+(p+4)(8−p)=0.
Expand and combine like terms:
(4p2−28p+13)+(−p2+4p+32)=0,
3p2−24p+45=0,
p2−8p+15=0,
(p−3)(p−5)=0.
Possible values are p=3 or p=5.
Corresponding a values:
For p=3: a=8−32(3)−1=55=1.
For p=5: a=8−52(5)−1=39=3.
The given condition is −21<a<2, which only a=1 satisfies.
Hence p=3 is the required value.
Final Answer: p=3