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!)
A194752 Number of k such that {-k*e} < {-n*e}, where { } = fractional part. 3
1, 2, 3, 1, 3, 5, 7, 2, 5, 8, 1, 5, 9, 13, 3, 8, 13, 1, 7, 13, 19, 4, 11, 18, 1, 9, 17, 25, 5, 14, 23, 1, 11, 21, 31, 6, 17, 28, 39, 11, 23, 35, 5, 18, 31, 44, 11, 25, 39, 4, 19, 34, 49, 11, 27, 43, 3, 20, 37, 54, 11, 29, 47, 2, 21, 40, 59, 11, 31, 51, 1, 22, 43, 64, 11, 33 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
MATHEMATICA
r = -E; 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}] (* A194752 *)
Table[t[n], {n, 1, 100}] (* A194753 *)
CROSSREFS
Sequence in context: A230449 A255437 A162609 * A194740 A194762 A054250
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 23 14:32 EDT 2024. Contains 371914 sequences. (Running on oeis4.)