Bunuel
Let us analyse the question:
It tells us the following things
a) First, there are n different things
b) Second, we can take one item or 2 items or 3 items .....till P items
c) When we pick these items, they can be same
d) We are looking at Permutation, so order makes a difference. Solution:
If we take 1 item, it can be filled in n ways.
If we take 2 items, it can be filled in n*n ways.
If we take 3 items, it can be filled in n*n*n ways.
.........
If we take p items, it can be filled in \(n*n*....p \ \ times=n^p\)ways.
Thus total ways = \(n+n^2+n^3+....n^p\)
This is a geometric progression where the common ratio by which each subsequent term increases is n. Formula for sum of a GP=\(\frac{First\\term(ratio^{number \\of \\terms}-1)}{ratio-1}\)
Here we have n as the first term, n as the common ratio and p as the number of terms.
Permutations =Answer =\(\frac{n(n^p-1)}{n-1}\)
D