A214848 First difference of A022846.
1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1
Offset: 0
Examples
28 is in [25, 36), a(5) = 1. 36 and 45 are in [36, 49), a(6) = 2.
References
- S.-I. Yasutomi, On Sturmian sequences which are invariant under some substitutions, in Number theory and its applications (Kyoto, 1997), pp. 347-373, Kluwer Acad. Publ., Dordrecht, 1999.
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
- Svetlana Jitomirskaya, Small denominators and multiplicative Jensen's formula, ICM 2022. See the initial slides "Playing with numbers".
- M. Lothaire, Algebraic combinatorics on words, Cambridge University Press. Online publication date: April 2013; Print publication year: 2002.
- S.-I. Yasutomi, On Sturmian sequences which are invariant under some substitutions, on ResearchGate.
Programs
-
Haskell
a214848 n = a214848_list !! n a214848_list = zipWith (-) (tail a022846_list) a022846_list -- Reinhard Zumkeller, Mar 03 2014
-
Mathematica
Differences[Round[Sqrt[2]Range[0,100]]] (* Harvey P. Dale, Jun 14 2020 *)
Formula
For n > 0: a(n) = A006338(n). - Reinhard Zumkeller, Mar 03 2014
Comments