{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
How many triangles with positive area have all their vertices at points $(i,j,k)$ in space, where $i$, $j$, and $k$ are integers between $1$ and $3$, inclusive?
There are $3^3=27$ points, so $\binom{27}3=2925$ triples of points. We subtract the triples that lie on a line.
Each coordinate is $1$, $2$, or $3$, so a line through $3$ of the points must contain exactly $3$ of them, with the middle point the midpoint of the other two. In each coordinate the three values are either all equal or $1,2,3$ in order (increasing or decreasing). So we count the lines, and each line gives exactly $1$ collinear triple.
Lines parallel to an edge of the cube (one coordinate changes, two stay fixed): $3$ directions, $3\cdot3=9$ lines each, $27$ lines. For example, $(1,2,3),(2,2,3),(3,2,3)$.
Diagonals of a square layer (two coordinates change, one stays fixed): choose the fixed coordinate ($3$ ways) and its value ($3$ ways), and then there are $2$ diagonals: $18$ lines. For example, $(1,1,2),(2,2,2),(3,3,2)$ and $(1,3,2),(2,2,2),(3,1,2)$.
Space diagonals (all three coordinates change): the $4$ lines through the center, such as $(1,1,1),(2,2,2),(3,3,3)$ and $(1,3,1),(2,2,2),(3,1,3)$.
So there are $27+18+4=49$ collinear triples, and the answer is $2925-49=\boxed{2876}$.