In general , we think that dice are different , so there are $6^n$ different possible outcomes when dice are distinct .
However, when the dice are identical , we only consider that how many different number will appear ,we can do it by stars and bars such that
Assume that the gaps between the bars means numbers on die . For example $$1|2|3|4|5 |6 $$ .Now , if we have $n$ stars , how many ways are there to see possible out comes ?
Answer is $$C(n+6-1, 5)$$ . Because ,we think the arrangements of $n$ identical stars and $5$ identical bars. You can think it like combination with repetition.
For example , if $n=4$ then $*|**|||*|$ means $(1,2,2,5)$ , $|||||****$ means $(6,6,6,6)$
If $n=3$ ,then $||*||*|*$ means $(3,5,6)$