OFFSET
1,2
COMMENTS
Beatty complement is A094390.
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = floor(n * exp(Pi/4)/(exp(Pi/4) - 1)).
MATHEMATICA
c = E^(Pi/4); d = c/(c-1); Table[Floor[n*d], {n, 70}]
PROG
(Magma)
R:= RealField(100);
[Floor(n*Exp(Pi(R)/4)/(Exp(Pi(R)/4)-1)): n in [1..100]]; // G. C. Greubel, Sep 27 2024
(SageMath)
[int(n*exp(pi/4)/(exp(pi/4)-1)) for n in range(1, 101)] # G. C. Greubel, Sep 27 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Apr 28 2004
STATUS
approved