There are n different books and p copies of each in a library. The number of ways in which one or more than one book can be selected is:
Number of ways in which one or more objects can be selected out of S1 alike objects of one kind, S2 alike objects of second kind and S3 alike objects of third kind
=(S1+1)(S2+1)(S3+1)−1
The above formula can be generalized as follows.
Number of ways in which one or more objects can be selected out of S1 alike objects of one kind, S2 alike objects of second kind , S3 alike objects of third kind and so on ... Sn alike objects of nth kind
(S1+1)(S2+1)(S3+1)............(Sn+1)−1
In our case it is (p+1)n−1