Consider triangles having integer sides such that no side is greater than 4 units. How many such triangles are possible?
I suspect a relation to the following question:
How many ways can $r$ things be taken from $n$ with repetition and without regard to order?
Without loss of generality, assume that $a \leq b \leq c < a+b$. This leaves us with very few choices.
1) All three could be equal. That gives us four choices.
2) $a=1$. Then, $b+1 > c$, so $b=c$ must happen, this gives three choices.
3) $a=2$. Then, $b \leq c < b+2$, so $b=2$,$c=3$ and $b=3, c=3,4$ , and $b=c=4$ are the possibilities.
4) $a=3$, then $b=3,c=4$ and $b=c=4$ are the only possibilities.
Hence, the total is $4+3+4+2 = 13$ possibilities.