A080757 First differences of Beatty sequence A022838(n) = floor(n sqrt(3)).
1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2
Offset: 0
Keywords
Links
- Michel Dekking, Substitution invariant Sturmian words and binary trees, Integers 18A, #A7, 1-15 (2018).
- Index entries for sequences that are fixed points of mappings
Programs
-
Haskell
a080757 = (subtract 1) . a007538 . (+ 1) -- Reinhard Zumkeller, Feb 14 2012
-
Mathematica
Flatten[ NestList[ Flatten[ # /. {1 -> {2, 2, 1}, 2 -> {2, 2, 2, 1}}] &, {1}, 4]] (* Robert G. Wilson v, Jun 20 2005 *) Differences[Floor[Range[0,110]Sqrt[3]]] (* Harvey P. Dale, Mar 15 2018 *)
Formula
a(n) = A007538(n+1) - 1. - Reinhard Zumkeller, Feb 13 2012
Comments