Pattern Calculator

By John Weider

Finds all possable patterns given the number of hits and the number of steps (up to 32).

aka. Finds all binary numbers from 1 to 2#steps where the number of bits that are ON=#hits.

Number of Hits: Number of Steps: Eliminate Patterns with Consecutive Hits.