OFFSET
1
COMMENTS
This is column two of the array A188294.
a(n) = 1 - A123740(n-2) for n>2 (from [-x] = -[x] - 1 for non-integer x). - Michel Dekking, Oct 03 2016
Positions of 0's and 1's are given in A188434 (essentially = A101868) and A188435 (essentially = A188010). 0's are always isolated, and except for the initial term, run lengths of 1's are either 2 or 4. In that sequence of run lengths (1, 2, 4, 2, 4, 4, 2, 4, 2, ...), the 2's are always isolated and the run lengths of 4's are either 1 or 2. In that sequence of run lengths (1, 2, 1, 2, 2, 1, 2, 1, 2, 2, ...), 1's are always isolated, and the run lengths of 2's are again either 1 or 2. - M. F. Hasler, Oct 12 2017
FORMULA
a(n) = [2r]-[nr]-[2r-nr], where r=(1+sqrt(5))/2.
MATHEMATICA
PROG
(PARI) a(n, a=sqrt(5)/2-.5)=3-n\a-(2-n)\a \\ M. F. Hasler, Oct 12 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 31 2011
STATUS
approved