There are p points in a plane, no three of which are in the same straight line with the exception of q, which are all in the same straight line; find the number (1) of straight lines, (2) of triangles which result from joining them.
Open in App
Solution
(1) There are two points required for a single straight line. ∴ Total number of single straight lines formed by ′p′ points =pC2 But ′q′ points are already in a straight line i.e. qC2 ∴ Total number of straight lines =pC2−qC2+1 (q points form a straight line) =p(p−1)2−q(q−1)2+1 (2) There are 3 points required for triangle making No. of triangles formed out of ′p′ points =pC3 No. of triangles formed out of ′q′ points =qC3 Since ′q′ points are in a straight line. Hence, they cannot form a triangle. ∴ Number of triangles formed =pC3−qC3 =p(p−1)(p−2)6−q(q−1)(q−2)6