Say we have 5 distinct items and 2 distinct boxes, none of which can be empty. There are $2^5$ ways to arrange them, but accounting for scenarios where all balls are in one box, we subtract 2, as there are two ways for this scenario to occur.
However, say we instead kept our 5 distinct items and added a new distinct box, so 3 of them, and none may be empty. Following this same method, how would we calculate the number of valid arrangements, starting with the $3^5$ total options and removing the invalid ones?