cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-1 of 1 results.

A094390 Beatty sequence of exp(Pi/4).

Original entry on oeis.org

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

Views

Author

Robert G. Wilson v, Apr 28 2004

Keywords

Comments

Beatty complement is A094391.

Crossrefs

Programs

  • Magma
    R:= RealField(100);
    [Floor(n*Exp(Pi(R)/4)): n in [1..100]]; // G. C. Greubel, Sep 27 2024
    
  • Mathematica
    c = E^(Pi/4); Table[Floor[n*c], {n,65}]
  • SageMath
    [int(n*exp(pi/4)) for n in range(1,101)] # G. C. Greubel, Sep 27 2024

Formula

a(n) = floor(n * exp(Pi/4)).
Showing 1-1 of 1 results.