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!)
A190239 a(n) = [n*u + n*v] - [n*u] - [n*v], where u=e^(Pi/2), v=1/u, and []=floor. 3
1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
COMMENTS
e^(Pi/2) - i^(-i) = 4.81047738096535165547..., as at A042972.
LINKS
MATHEMATICA
u = Exp[Pi/2]; v = 1/u;
f[n_] := Floor[n*u + n*v] - Floor[n*u] - Floor[n*v]
t = Table[f[n], {n, 1, 120}] (* A190239 *)
Flatten[Position[t, 0]] (* A190240 *)
Flatten[Position[t, 1]] (* A190241 *)
Table[Floor[2*n*Cosh[Pi/2]] - Floor[n*Exp[Pi/2]] - Floor[n*Exp[-Pi/2]], {n, 1, 30}] (* G. C. Greubel, Dec 26 2017 *)
PROG
(PARI) for(n=1, 30, print1(floor(2*n*cosh(Pi/2)) - floor(n*exp(Pi/2)) - floor(n*exp(-Pi/2)), ", ")) \\ G. C. Greubel, Dec 26 2017
(Magma) C<i> := ComplexField(); [Floor(2*n*Cosh(Pi(C)/2)) - Floor(n*Exp(Pi(C)/2)) - Floor(n*Exp(-Pi(C)/2)): n in [1..30]]; // G. C. Greubel, Dec 26 2017
CROSSREFS
Sequence in context: A176137 A290808 A364252 * A120529 A292301 A099443
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 06 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 10:22 EDT 2024. Contains 371967 sequences. (Running on oeis4.)