A335699 Irregular tree read by rows: take the Stern-Brocot tree A007305(n)/A007306(n) and set a(n) = A007306(n) - A007305(n) mod 3.
1, 0, 1, 2, 1, 0, 0, 2, 1, 1, 2, 2, 1, 0, 0, 2, 1, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 2, 1, 0, 0, 2, 1, 0, 0, 2, 1, 2, 1, 0, 0, 0, 0, 1, 2, 1, 2, 0, 0, 2, 1, 2, 1, 1, 2, 1, 2, 1, 2, 2, 1, 0, 0, 2, 1, 1, 2, 2, 1, 0, 0, 2, 1, 2, 1, 0, 0, 2
Offset: 0
Examples
The initial rows of the tree are 1,0 // 1 // 2,1 // 0,0,2,1 // 1,2,2,1,0,0,2,1 // ...
Links
- Kiana Mittelstaedt, A Stochastic Approach to Eulerian Numbers, arXiv:1902.03195 [math.CO], 2019. Also Amer. Math. Mnthly, 127:7 (2020), 618-628. See Fig. 5. Note that this author has omitted the two initial terms.