This applet generates length-n bitstrings without p consecutive 1s, in Gray code order, where strings are regarded circularly.

Input: n, p