How many ways can you choose three scoops of ice cream from 31 flavors, assuming that flavors are allowed to be repeated? Using the method of "stars and bars," you find 5,456 possibilities if the order of flavors does not matter. The technique also works for counting endgame positions in backgammon.
click here to see where to watch or .
Ready to Watch Discrete Mathematics, Season 1, Episode 5?