The Gateway to Computer Science Excellence
+1 vote
109 views
Given a 4 *4 grid  points , how many Triangles with vertices on the grid can be formed?
in Combinatory by Active (2.3k points) | 109 views
0
144  ??
0
Answer given was 516

1 Answer

+1 vote
Best answer

I have calculated it as 516.

The selection of 3 points out of 16 can be done in 16C3 = 560.

This include points that are collinear. If you calculate the number of collinear lines with 3 grid points then you will get 44 such lines. 

So, final number of possible triangles are 560 -44 = 516

This stackexchange Q&A helped me to solve this: https://math.stackexchange.com/a/634131

by (303 points)
selected by
0
16C3 is total 3 points selected. -560

10* 4C3 - collinear lines 4 vertical 4 horizontal 2 diagonal -40

I m unable to visualise the other 4 collinear lines

Can u plzz help me out

I think I m missing something...
0

Please consider counting these 4 lines too

0
Thanku....:)
0
For 5* 5 grid

Will it be like this

25C3  all 3 points selected

12* 5C3 = 120   collinear lines 5 each horizontal vertical and 2 diagonal

4 non diagonal collinear lines with 3  grid points

4* 4C3 non diagonal collinear lines with 4 points

I m getting 2160...

But there how they got 12 collinear lines with 3 grid points....:(
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,314 answers
198,358 comments
105,085 users