How many triangles with integral side lengths are possible, provided their perimeter is $36$ units?
Let the side lengths be $a, b, c$; now,
$$a + b + c = 36$$
Now, $1 \leq a, b, c \leq 18$.
Applying multinomial theorem, I'm getting $187$ which is wrong.