OFFSET
0,1
COMMENTS
The arithmetic mean (1/(n+1))*Sum_{k=0..n} a(k) converges to 4 - Pi. What is effectively the same: the Cesaro limit (C1) of a(n) is 4 - Pi.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..10000
FORMULA
EXAMPLE
a(6)=1 because 7*Pi=21.99..., 6*Pi=18.84... and so a(6) = (21 - 18) mod 2 = 1;
a(7)=0 because 8*Pi=25.13... and so a(7) = (25 - 21) mod 2 = 0.
MATHEMATICA
Mod[Differences[Floor[Pi*Range[0, 120]]], 2] (* Paolo Xausa, Nov 07 2025 *)
CROSSREFS
KEYWORD
nonn,less
AUTHOR
Hieronymus Fischer, Jan 31 2006
STATUS
approved
