31. In how many ways can 5 different items be distributed into eight boxes if no more than one item can be placed in one box?
31. The choice of the box for the first item can be made in eight ways, for the second in seven ways, and so on. In total, we get $8 \cdot 7 \cdot 6 \cdot 5 \cdot 4=6720$ ways.