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!)
A014246 a(n) = (n-th term of Beatty sequence for e) - (n-th term of Beatty sequence for e/(e-1)). 1
1, 2, 4, 4, 6, 7, 8, 9, 10, 12, 12, 14, 15, 16, 17, 18, 20, 20, 21, 23, 24, 25, 26, 28, 28, 29, 31, 32, 33, 34, 35, 36, 37, 39, 40, 41, 42, 43, 45, 45, 47, 48, 48, 50, 51, 53, 53, 55, 56, 56, 58, 59, 61, 61, 62, 64, 64, 66, 67, 69, 69, 70, 72, 72, 74, 75, 77, 77, 78, 80, 80, 82 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = floor(e * n) - floor(e/(e-1) * n). - Franklin T. Adams-Watters, Nov 02 2006
MATHEMATICA
Table[Floor[n*E] - Floor[n*E/(E-1)], {n, 1, 75}] (* G. C. Greubel, Jun 19 2019 *)
PROG
(PARI) my(e=exp(1)); vector(75, n, (n*e)\1 - (n*e)\(e-1)) \\ G. C. Greubel, Jun 19 2019
(Magma) E:=Exp(1); [Floor(n*E) - Floor(n*E/(E-1)): n in [1..75]]; // G. C. Greubel, Jun 19 2019
(Sage) [floor(n*e) - floor(n*e/(e-1)) for n in (1..75)] # G. C. Greubel, Jun 19 2019
CROSSREFS
Sequence in context: A316945 A307370 A352923 * A026413 A342929 A038669
KEYWORD
nonn
AUTHOR
EXTENSIONS
Corrected and extended by Franklin T. Adams-Watters, Nov 02 2006
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 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)