Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #14 Apr 10 2021 23:56:52
%S 0,0,0,0,0,0,0,7,6,5,4,3,2,1,14,12,10,8,6,4,2,21,18,15,12,9,6,3,28,24,
%T 20,16,12,8,4,35,30,25,20,15,10,5,42,36,30,24,18,12,6,49,42,35,28,21,
%U 14,7,56,48,40,32,24,16,8,63,54,45,36,27,18,9,70,60,50,40,30,20
%N Number of integers k in 1..n such that {k*Pi} > {n*Pi}, where { } = fractional part.
%t r = Pi; p[x_] := FractionalPart[x];
%t u[n_, k_] := If[p[k*r] <= p[n*r], 1, 0]
%t v[n_, k_] := If[p[k*r] > p[n*r], 1, 0]
%t s[n_] := Sum[u[n, k], {k, 1, n}]
%t t[n_] := Sum[v[n, k], {k, 1, n}]
%t Table[s[n], {n, 1, 100}] (* A194754 *)
%t Table[t[n], {n, 1, 100}] (* A194755 *)
%Y Cf. A194754, A194738.
%K nonn
%O 1,8
%A _Clark Kimberling_, Sep 02 2011
%E Name clarified by _Jon E. Schoenfield_, Apr 10 2021