The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A194742 Number of k such that {k*sqrt(5)} < {n*sqrt(5)}, where { } = fractional part. 3

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

%S 1,2,3,4,1,3,5,7,1,4,7,10,1,5,9,13,1,6,11,16,21,5,11,17,23,4,11,18,25,

%T 3,11,19,27,2,11,20,29,38,9,19,29,39,7,18,29,40,5,17,29,41,3,16,29,42,

%U 55,13,27,41,55,10,25,40,55,7,23,39,55,4,21,38,55,72,17,35,53

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

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

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

%Y Cf. A194743, 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 May 13 03:50 EDT 2024. Contains 372497 sequences. (Running on oeis4.)