2.66. Solution: N runs of the 10 heads problem