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!)
A194739 Number of k such that {k*sqrt(3)} > {n*sqrt(3)}, where { } = fractional part. 2

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

%S 0,1,2,0,2,4,6,1,4,7,10,2,6,10,0,5,10,15,2,8,14,20,4,11,18,25,6,14,22,

%T 1,10,19,28,4,14,24,34,7,18,29,40,10,22,34,2,15,28,41,6,20,34,48,10,

%U 25,40,0,16,32,48,5,22,39,56,10,28,46,64,15,34,53,2,22,42,62,8

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

%t r = Sqrt[3]; 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}] (* A194738 *)

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

%Y Cf. A194738.

%K nonn

%O 1,3

%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 23 22:36 EDT 2024. Contains 371917 sequences. (Running on oeis4.)