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

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

%S 1,2,1,3,1,4,1,5,1,6,11,5,11,4,11,3,11,2,11,20,9,19,7,18,5,17,3,16,1,

%T 15,29,12,27,9,25,6,23,3,21,39,17,36,13,33,9,30,5,27,1,24,47,19,43,14,

%U 39,9,35,4,31,58,25,53,19,48,13,43,7,38,1,33,65,26,59,19,53,12

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

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

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

%Y Cf. A194747, A194738.

%K nonn

%O 1,2

%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 12:08 EDT 2024. Contains 371912 sequences. (Running on oeis4.)