Difference between revisions of "2017 AMC 10A Problems/Problem 23"

(Solution)
Line 5: Line 5:
  
 
==Solution==
 
==Solution==
There are a total of <math>\binom{25}{3}=2300</math> triangles. However, some of them are degenerate if <math>3</math> or more points lie on the same line. There are a total of 12 lines that go through 5 points (5 vertical, 5 horizontal, 2 diagonal), 4 lines with slope <math>\pm 1</math> that go through exactly 4 points, and 16 lines (<math>3*4+4</math>) with slope <math>\pm 0.5, \pm 1, \pm 2</math>. Subtracting these degenerate triangles, we get an answer of <math>2300-12*10-4*4-16=2180-32=\boxed{\textbf{(B)}2148}</math>.
+
There are a total of <math>\binom{25}{3}=2300</math> sets of three points. However, some of them form degenerate triangles (i.e., they have area of 0) if the three points are collinear. There are a total of 12 lines that go through 5 points (5 vertical, 5 horizontal, 2 diagonal), which contributes <math>\binom{5}{3} \cdot 12 = 120</math> degenerate triangles, 4 linesthat go through exactly 4 points, which contributes <math>\binom{4}{3} \cdot 4 = 16</math> degenerate triangles, and 16 lines that go through exactly three points, which contributes <math>\binom{3}{3} \cdot 16 = 16</math> degenerate triangles. Subtracting these degenerate triangles, we get an answer of <math>2300-120-16-16=2300-152=\boxed{\textbf{(B) }2148}</math>.

Revision as of 20:05, 8 February 2017

Problem

How many triangles with positive area have all their vertices at points $(i,j)$ in the coordinate plane, where $i$ and $j$ are integers between $1$ and $5$, inclusive?

$\textbf{(A)}\ 2128 \qquad\textbf{(B)}\ 2148 \qquad\textbf{(C)}\ 2160 \qquad\textbf{(D)}\ 2200 \qquad\textbf{(E)}\ 2300$

Solution

There are a total of $\binom{25}{3}=2300$ sets of three points. However, some of them form degenerate triangles (i.e., they have area of 0) if the three points are collinear. There are a total of 12 lines that go through 5 points (5 vertical, 5 horizontal, 2 diagonal), which contributes $\binom{5}{3} \cdot 12 = 120$ degenerate triangles, 4 linesthat go through exactly 4 points, which contributes $\binom{4}{3} \cdot 4 = 16$ degenerate triangles, and 16 lines that go through exactly three points, which contributes $\binom{3}{3} \cdot 16 = 16$ degenerate triangles. Subtracting these degenerate triangles, we get an answer of $2300-120-16-16=2300-152=\boxed{\textbf{(B) }2148}$.