A080586 A run of 3*2^n 1's followed by a run of 3*2^n 2's, for n=0, 1, 2, ...
1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 0
Keywords
Programs
-
Maple
f := (c,n)->seq(c,i=1..3*2^n); [f(1,0),f(2,0),f(1,1),f(2,1),f(1,2),f(2,2),f(1,3),f(2,3)]; f;
-
Mathematica
Flatten[Table[{PadRight[{},3*2^n,1],PadRight[{},3*2^n,2]},{n,0,4}]] (* Harvey P. Dale, May 04 2014 *)