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.

A276857 First differences of the Beatty sequence A022841 for sqrt(7).

Original entry on oeis.org

2, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 3, 2, 3, 2, 3, 3, 2, 3
Offset: 1

Views

Author

Clark Kimberling, Sep 24 2016

Keywords

Comments

From Michel Dekking, Mar 09 2019: (Start)
This homogeneous Sturmian sequence, with the first entry removed, is fixed point of the morphism on {2,3} given by
2 -> 32332332332332
3 -> 32332332332332323.
This follows since sqrt(7)-2 has a periodic continued fraction expansion with period [1,1,1,4], see, e.g., Corollary 9.1.6 in Allouche and Shallit. (End)

References

  • J.-P. Allouche and J. Shallit, Automatic Sequences, Cambridge Univ. Press, 2003, p. 286.

Crossrefs

Programs

  • Mathematica
    z = 500; r = Sqrt[7]; b = Table[Floor[k*r], {k, 0, z}] (* A022841 *)
    Differences[b] (* A276857 *)

Formula

a(n) = floor(n*r) - floor(n*r - r), where r = sqrt(7), n >= 1.