Processing math: 100%

In a 3×3 grid of points, many triangles can be formed using 3 of the points as vertices?

Three such triangles are shown below.

Of all these possible triangles, how many have all three sides of different lengths?