In how many ways can $18$ be written as the sum of four distinct positive integers? Note: $1 + 3 + 5 + 9$ and $5 + 1 + 3 + 9$ are counted as different ways
Other than just bashing it out, how can I do this in a reasonable amount of time where I won't miss anything?
Honestly, the best way is casework on the biggest number.
The biggest number must be $12$ or under, because if otherwise it would be impossible.
In total there are $1+1+2+3+4+3+1 = 15$ quadruples, each of which can be ordered in $4! = 24$ ways, for a total answer of $$15\cdot 24 = \boxed{360.}$$