The number of ways of arranging p numbers out of so that maximum is and minimum
is 2 (repetition of number is allowed) such that maximum and minimum both occur exactly once is
First we take one of the numbers as and one another as. We can arrange these two numbers in
ways. We have to choose remaining numbers
from the numbers This can be done in
ways Thus, the total number of ways of arranging the numbers
in de sired way is