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
Solution
First of all, find the ways formed triangles by 12 points that is 12C3 then after 7 points are in a straight line so find the ways formed triangles by 7 points that is 7C3then subtract this from 12C3 so, we get the answer.
The formula to calculate nCr is:
nCr=[r!(n−r)!n!]
Complete step by step solution:
To formed a triangle, we need to three points so if 12 points are formed 12C3 triangles.
Total triangle formed by 12 points =12C3
By using this formula nCr=[r!(n−r)!n!]we can expand 12C3like this
=(3!)(12−3)!12!
In above equation 12! Expand by using formula n!=n×(n−1)×(n−2)×(n−3)×........1
=(3×2×1)(9!)12×11×10×9!
=220triangles
But in a statement that clearly stated as that seven points are in the same line that seven points formed triangle 7C3ways 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 =12C3−7C3
By using this formula nCr=[r!(n−r)!n!]we can expand 7C3like this
=220−[3!(7−3)!7!]
=220−35
=185 triangles
∴ The number of triangles formed is 185.
Note:
If there is x point to form a triangle the ways of the triangle to form are xC3. But not to forget if any points like p point are in a straight line then this point form pC3 triangle not to forgot to subtract this triangle.