Solveeit Logo

Question

Question: If 7 points out of 12 are in the same straight line, then the number of triangles formed is (A) 19...

If 7 points out of 12 are in the same straight line, then the number of triangles formed is
(A) 19
(B) 158
(C) 185
(D) 201

Explanation

Solution

First of all, find the ways formed triangles by 12 points that is 12C3{}^{12}{C_3} then after 7 points are in a straight line so find the ways formed triangles by 7 points that is 7C3{}^7{C_3}then subtract this from 12C3{}^{12}{C_3} so, we get the answer.
The formula to calculate nCr{}^n{C_r} is:
nCr=[n!r!(nr)!]{}^n{C_r} = \left[ {\dfrac{{n!}}{{r!(n - r)!}}} \right]

Complete step by step solution:
To formed a triangle, we need to three points so if 12 points are formed 12C3{}^{12}{C_3} triangles.
Total triangle formed by 12 points =12C3 = {}^{12}{C_3}
By using this formula nCr=[n!r!(nr)!]{}^n{C_r} = \left[ {\dfrac{{n!}}{{r!(n - r)!}}} \right]we can expand 12C3{}^{12}{C_3}like this
=12!(3!)(123)!= \dfrac{{12!}}{{(3!)(12 - 3)!}}
In above equation 12! Expand by using formula n!=n×(n1)×(n2)×(n3)×........1n! = n \times (n - 1) \times (n - 2) \times (n - 3) \times ........1
=12×11×10×9!(3×2×1)(9!)= \dfrac{{12 \times 11 \times 10 \times 9!}}{{(3 \times 2 \times 1)(9!)}}
=220= 220triangles
But in a statement that clearly stated as that seven points are in the same line that seven points formed triangle 7C3{}^7{C_3}ways so that seven points not formed a triangle with each other so subtract this way of the Striangle from the total ways of the triangle.
So, If the 7 points out of 12 are =12C37C3 = {}^{12}{C_3} - {}^7{C_3}
By using this formula nCr=[n!r!(nr)!]{}^n{C_r} = \left[ {\dfrac{{n!}}{{r!(n - r)!}}} \right]we can expand 7C3{}^7{C_3}like this
=220[7!3!(73)!]= 220 - \left[ {\dfrac{{7!}}{{3!(7 - 3)!}}} \right]
=22035= 220 - 35
=185= 185 triangles

\therefore The number of triangles formed is 185.

Note:
If there is xx point to form a triangle the ways of the triangle to form are xC3{}^x{C_3}. But not to forget if any points like p point are in a straight line then this point form pC3{}^p{C_3} triangle not to forgot to subtract this triangle.