I'm having trouble on deciding when it's appropriate to use the stars and bars method for enumeration. For example, the following question:
Suppose each student in a 50-student class selects a number 1 through 10 with uniform probability, that is each number 1 − 10 is equally likely to be chosen by each student. What is the probability that exactly 6 students choose 1?
Would stars and bars be a valid approach here?
Does the following ring a bell?
A certain experiment with a success chance of ${1\over10}$ is performed $50$ times independently. What is the probability that we see exactly $6$ successes?