login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A189818
Positions of 1 in A189816; complement of A189817.
4
2, 3, 11, 12, 14, 15, 17, 18, 20, 21, 23, 24, 26, 27, 29, 30, 38, 39, 47, 48, 56, 57, 65, 66, 74, 75, 83, 84, 92, 93, 95, 96, 98, 99, 101, 102, 104, 105, 107, 108, 110, 111, 119, 120, 122, 123, 125, 126, 128, 129, 131, 132, 134, 135, 137, 138, 146, 147, 149, 150, 152, 153, 155, 156, 158, 159, 161, 162, 164, 165, 173, 174, 176, 177, 179, 180
OFFSET
1,1
LINKS
MATHEMATICA
a[1] = 0; h = 180;
Table[a[3 k - 2] = 0, {k, 1, h}];
Table[a[3 k - 1] = 1 - a[k], {k, 1, h}];
Table[a[3 k] = 1 - a[k], {k, 1, h}];
Table[a[n], {n, 1, h}] (*A189816*)
Flatten[Position[%, 0]] (*A189817*)
Flatten[Position[%%, 1]] (*A189818*)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 28 2011
STATUS
approved