login
A188467
[4r]-[nr]-[4r-nr], where r=(1+sqrt(5))/2 and [.]=floor.
4
1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1
OFFSET
1
COMMENTS
See A188294. First differs from A078588 at the 38th term.
(a(n)) is essentially the same as A188014 and also as A187950. The second sequence is a shift of (a(n)), and the first sequence is obtained by applying [-x]=[x]-1 for all non-integer x. This gives a(n) = 1-A188014(n) for all n not equal to 4. - Michel Dekking, Oct 04 2016
FORMULA
a(n)=[4r]-[nr]-[4r-nr], where r=(1+sqrt(5))/2.
MATHEMATICA
r = (1 + 5^(1/2))/2 + .0000000000001;
f[n_] := Floor[4r] - Floor[n*r] - Floor[4r - n*r]
t = Flatten[Table[f[n], {n, 1, 200}]] (* A188467 *)
Flatten[Position[t, 0] ] (* A188468 *)
Flatten[Position[t, 1] ] (* A188469 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Apr 01 2011
STATUS
approved