Question
Question: There are n points in a plane out of these points no three are in the same straight line except p po...
There are n points in a plane out of these points no three are in the same straight line except p points which are collinear. Let "k" be the number of straight lines and "m" be the number of triangles .Then find m−k ?(Assume n=7p=5)
Solution
To find m−k , we have to find the required number of straight lines and triangles. We know that for a line to be formed, 2 points are required. Hence, Number of lines formed with n points =nC2 . Also a number of lines formed with p collinear points =pC2 . Hence, required number of straight lines =k=nC2−pC2+1 . We know that a triangle has 3 vertices. Hence, number of triangles formed from n points =nC3 and number of triangles formed from p points =pC3 . Hence, required number of triangles =m=nC3−pC3 . Now, we can find m-k by substituting n=5 and p=75 in m−k=nC3−pC3−(nC2−pC2+1) .
Complete step-by-step answer:
We are given that there are n points in a plane of which no three are in the same straight line except p points which are collinear. Let us find the number of lines formed with n points.
We know that for a line to be formed, 2 points are required. Hence,
Number of lines formed with n points =nC2
Now, let us find the number of lines formed by collinear points.
Number of lines formed with p collinear points =pC2
We are given that no three points are in the same straight line except p points which are collinear. The collinear points form one straight line. Hence, we can find the required number of straight lines as follows.
Required number of straight lines =nC2−pC2+1
We added 1 as the collinear points form one straight line.
We are given that the number of straight lines are k. Hence,
k=nC2−pC2+1...(i)
We know that a triangle has 3 vertices. Hence,
Number of triangles formed from n points =nC3
Number of triangles formed from p points =pC3
Now we can find the number of triangles formed with n points but not with collinear points.
Required number of triangles =nC3−pC3
We are given that m is the number of triangles formed. Hence,
m=nC3−pC3
We have to find m−k .
⇒m−k=nC3−pC3−(nC2−pC2+1)
We can write this as
m−k=nC3−pC3−nC2+pC2−1
We are given that n=5 .
⇒m−k=5C3−pC3−5C2+pC2−1
We know that nCr=r!(n−r)!n! . Let’s expand the above equation.
⇒m−k=3!(5−3)!5!−pC3−2!(5−2)!5!+pC2−1⇒m−k=3!2!5!−pC3−2!3!5!+pC2−1
Let us cancel the common terms. We will get
⇒m−k=−pC3+pC2−1
Now, let’s again apply nCr=r!(n−r)!n! to the above equation. We will get
⇒m−k=−3!(p−3)!p!+2!(p−2)!p!−1
We know that n!=n×(n−1)×(n−2)×(n−3)×...1 . Hence,
⇒m−k=−3!(p−3)!p(p−1)(p−2)(p−3)!+2!(p−2)!p(p−1)(p−2)!−1
Let us cancel the common terms. We will get
m−k=−3!p(p−1)(p−2)+2!p(p−1)−1
Now, let’s expand the factorial.
⇒m−k=−3×2×1p(p−1)(p−2)+2×1p(p−1)−1⇒m−k=−6p(p−1)(p−2)+2p(p−1)−1
Let us take the LCM of 6 and 2 which is 6. We can write the above equation as
⇒m−k=6−p(p−1)(p−2)+3p(p−1)−6
Let us simplify this.
⇒m−k=6−(p2−p)(p−2)+3p2−3p−6⇒m−k=6−p3+2p2+p2−2p+3p2−3p−6
Let’s solve this.
⇒m−k=6−p3+6p2−5p−6
We are given that 7p=5⇒p=75 . Let’s substitute this in the above equation.
⇒m−k=6−(75)3+6(75)2−5(75)−6
Let’s expand this.
⇒m−k=6−343125+6×4925−725−6⇒m−k=6−343125+49150−725−6
Let us take the LCM of 343,49 and 7 which is 343. We will get
⇒m−k=6343−125+1050−1225−2058⇒m−k=6343−125+1050−1225−2058
Let’s solve this. We will get
⇒m−k=343×6−2358⇒m−k=2058−2358=343−393
Let us write this in decimals. We will get
m−k=1.145
Hence, the value of m−k is 1.145.
Note: You may make mistake by writing required number of straight lines =nC2−pC2−1 and also by writing required number of triangles =nC3+pC3 . Do not substitute the value of p at the beginning as we will not be able to solve it further. You must find the value of p from 7p=5 before substituting.