login
A094390
A Beatty sequence using exp(Pi/4).
2
2, 4, 6, 8, 10, 13, 15, 17, 19, 21, 24, 26, 28, 30, 32, 35, 37, 39, 41, 43, 46, 48, 50, 52, 54, 57, 59, 61, 63, 65, 67, 70, 72, 74, 76, 78, 81, 83, 85, 87, 89, 92, 94, 96, 98, 100, 103, 105, 107, 109, 111, 114, 116, 118, 120, 122, 125, 127, 129, 131, 133, 135, 138, 140
OFFSET
1,1
COMMENTS
Beatty complement is A094391.
LINKS
FORMULA
a(n) = floor(n * exp(Pi/4)).
MATHEMATICA
c = E^(Pi/4); Table[Floor[n*c], {n, 65}]
PROG
(Magma)
R:= RealField(100);
[Floor(n*Exp(Pi(R)/4)): n in [1..100]]; // G. C. Greubel, Sep 27 2024
(SageMath)
[int(n*exp(pi/4)) for n in range(1, 101)] # G. C. Greubel, Sep 27 2024
CROSSREFS
Cf. A094391.
Sequence in context: A329828 A172278 A276383 * A186289 A332687 A345981
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Apr 28 2004
STATUS
approved