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!)
A194743 Number of k such that {k*sqrt(5)} > {n*sqrt(5)}, where { } = fractional part. 3
0, 0, 0, 0, 4, 3, 2, 1, 8, 6, 4, 2, 12, 9, 6, 3, 16, 12, 8, 4, 0, 17, 12, 7, 2, 22, 16, 10, 4, 27, 20, 13, 6, 32, 24, 16, 8, 0, 30, 21, 12, 3, 36, 26, 16, 6, 42, 31, 20, 9, 48, 36, 24, 12, 0, 43, 30, 17, 4, 50, 36, 22, 8, 57, 42, 27, 12, 64, 48, 32, 16, 0, 56, 39, 22, 5, 64 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
MATHEMATICA
r = Sqrt[5]; 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}] (* A194742 *)
Table[t[n], {n, 1, 100}] (* A194743 *)
CROSSREFS
Sequence in context: A194738 A194750 A370350 * A113778 A295673 A155172
KEYWORD
nonn
AUTHOR
Clark Kimberling, Sep 02 2011
STATUS
approved

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 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)