A006594 A Beatty sequence: floor(n*(1 + 1/e)).
1, 2, 4, 5, 6, 8, 9, 10, 12, 13, 15, 16, 17, 19, 20, 21, 23, 24, 25, 27, 28, 30, 31, 32, 34, 35, 36, 38, 39, 41, 42, 43, 45, 46, 47, 49, 50, 51, 53, 54, 56, 57, 58, 60, 61, 62, 64, 65, 67, 68, 69, 71, 72, 73, 75, 76, 77, 79, 80, 82, 83, 84, 86, 87, 88, 90, 91, 93, 94, 95, 97
Offset: 1
References
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
Links
- G. C. Greubel, Table of n, a(n) for n = 1..10000
- I. G. Connell, Some properties of Beatty sequences II, Canad. Math. Bull., 3 (1960), 17-22.
- Index entries for sequences related to Beatty sequences
Crossrefs
Cf. A000572.
Programs
-
Magma
A006594:= func< n | Floor(n*(1+Exp(-1))) >; [A006594(n): n in [1..100]]; // G. C. Greubel, Aug 28 2025
-
Mathematica
Table[Floor[n(1+1/E)],{n,80}] (* Harvey P. Dale, Dec 05 2016 *)
-
SageMath
def A006594(n): return floor(n*(1+exp(-1))) print([A006594(n) for n in range(1,101)]) # G. C. Greubel, Aug 28 2025
Extensions
More terms from Larry Reeves (larryr(AT)acm.org), Feb 07 2001