Problem #PRU-100589

Problems Discrete Mathematics Combinatorics

Problem

There are again some adventurers standing in a queue to see a dragon’s treasure. This time, there are more of them – 26. The rules have changed slightly, they still enter exactly in the order they are queuing, but they now have to divide themselves into 5 groups, and some of the groups can be empty, do not consist of any adventurers at all. In how many ways can they do that now?