login
A190188
a(n) = [n*u+n*v]-[n*u]-[n*v], where u=e, v=1/e, and []=floor.
3
1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0
OFFSET
1
LINKS
FORMULA
a(n) = [n*e + n/e]-[n*e]-[n/e].
MATHEMATICA
u = E; v = 1/E;
f[n_] := Floor[n*u + n*v] - Floor[n*u] - Floor[n*v]
t = Table[f[n], {n, 1, 120}] (*A190188*)
Flatten[Position[t, 0]] (*A190189*)
Flatten[Position[t, 1]] (*A190190*)
Table[Floor[2*n*Cosh[1]] - Floor[n*Exp[1]] - Floor[n*Exp[-1]], {n, 1, 50}] (* G. C. Greubel, Dec 28 2017 *)
PROG
(PARI) for(n=1, 30, print1(floor(2*n*cosh(1)) - floor(n*exp(1)) - floor(n*exp(-1)), ", ")) \\ G. C. Greubel, Dec 27 2017
(Magma) [Floor(2*n*Cosh(1)) - Floor(n*Exp(1)) - Floor(n*Exp(-1)): n in [1..30]]; // G. C. Greubel, Dec 27 2017
CROSSREFS
Sequence in context: A189094 A041004 A141736 * A372456 A278513 A134842
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 05 2011
STATUS
approved