This grows very large with the number of flips. It will throw an error if you try too many flips.

get_possibilities(nheads, nflips)