login
A144609
Sturmian word of slope Pi.
2
0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1
OFFSET
0,1
COMMENTS
A063438 seems to contain the run lengths of 1's. - R. J. Mathar, May 30 2025
MAPLE
Digits := 500 :
x :=1 ;
y :=0 ;
slop := Pi ;
printf("0, ") ;
for n from 1 to 300 do
if evalf((y+1)/x-slop) > 0 then
x := x+1 ;
printf("0, ") ;
else
y := y+1 ;
printf("1, ") ;
end if;
end do: # R. J. Mathar, May 30 2025
MATHEMATICA
christoffel[s_, M_] := Module[{n, x = 1, y = 0, ans = {0}}, Do[ If[y + 1 <= s*x, AppendTo[ans, 1]; y++, AppendTo[ans, 0]; x++], {n, 1, M}]; ans]; christoffel[Pi, 105] (* Robert G. Wilson v, Feb 02 2017, after Jean-François Alcover, Sep 19 2016, A274170 *)
CROSSREFS
See A144595 for further details.
Seems to be very similar to A070127. Is this a coincidence?
Cf. A063438, A076539 (partial sums).
Sequence in context: A046978 A075553 A131729 * A115517 A351039 A022930
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 13 2009
STATUS
approved