Try this:
in A1 and B1 your ratio, so for 2:1 2 in A1 and 1 in B1, for 60% 6 and 4 (or 3 and 2), and so on.
in A2 formula:
in B2 (and copy to right as far an many elements you need):
so for instance with 7:4 your pattern will repeat every 11 cells as:
1 0 1 1 0 1 0 1 1 0 1
In attached file I used conditional formatting with alternating colors to show where pattern repeats.
and to clarify, in your first sample I'd say that pattern is just 1,1,0 (or -as generated with above formulas: 1,0,1) and for 12 elements it's simply repeated 4 times :-)
Bookmarks