

A194759


Number of k such that {k*log(2)} > {n*log(2)}, where { } = fractional part.


3



0, 1, 2, 0, 2, 4, 0, 3, 6, 0, 4, 8, 12, 3, 8, 13, 2, 8, 14, 1, 8, 15, 0, 8, 16, 24, 6, 15, 24, 4, 14, 24, 2, 13, 24, 0, 12, 24, 36, 9, 22, 35, 6, 20, 34, 3, 18, 33, 0, 16, 32, 48, 12, 29, 46, 8, 26, 44, 4, 23, 42, 0, 20, 40, 60, 15, 36, 57, 10, 32, 54, 5, 28, 51, 0, 24, 48
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,3


LINKS



MATHEMATICA

r = Log[2]; p[x_] := FractionalPart[x];
u[n_, k_] := If[p[k*r] <= p[n*r], 1, 0]
v[n_, k_] := If[p[k*r] > p[n*r], 1, 0]
s[n_] := Sum[u[n, k], {k, 1, n}]
t[n_] := Sum[v[n, k], {k, 1, n}]
Table[s[n], {n, 1, 100}] (* A194758 *)
Table[t[n], {n, 1, 100}] (* A194759 *)


CROSSREFS



KEYWORD

nonn


AUTHOR



STATUS

approved



