Q. There are six periods in each working day of a school. Number of ways in which subjects can be arranged if each subject is allotted at least one period and no period remains vacant is

 2658  234 Permutations and Combinations Report Error

Solution:

Atleast one period is repeated, which can be selected in ways.
Now subjects can be arranged in ways.
Hence total number of ways are