login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A194761 Number of k such that {-k*log(2)} > {-n*log(2)}, where { } = fractional part. 3

%I #5 Mar 30 2012 18:57:44

%S 0,0,0,3,2,1,6,4,2,9,6,3,0,10,6,2,14,9,4,18,12,6,22,15,8,1,20,12,4,25,

%T 16,7,30,20,10,35,24,13,2,30,18,6,36,23,10,42,28,14,48,33,18,3,40,24,

%U 8,47,30,13,54,36,18,61,42,23,4,50,30,10,58,37,16,66,44,22,74

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

%t r = -Log[2]; 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}] (* A194760 *)

%t Table[t[n], {n, 1, 100}] (* A194761 *)

%Y Cf. A194760, A194738.

%K nonn

%O 1,4

%A _Clark Kimberling_, Sep 02 2011

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 10:43 EDT 2024. Contains 371967 sequences. (Running on oeis4.)