Pascal’s Triangle
The Wikipedia page has a good description of what Pascal’s Triangle is and how you can generate the rows. It is also easy to find a larger (more rows) version online.
Dungeons & Dragons Dice
There is a page that can show you probabilities of generating different outcomes depending on your choice of dice. Another page has a very good description of how the different outcomes choosing the best three of four dice are generated.