A332789 First differences of the iterated Beatty sequence A007069.
1, 3, 2, 2, 2, 1, 3, 1, 3, 2, 1, 3, 1, 3, 2, 2, 2, 1, 3, 2, 2, 2, 1, 3, 1, 3, 2, 2, 2, 1, 3, 2, 2, 2, 1, 3, 1, 3, 2, 1, 3, 1, 3, 2, 2, 2, 1, 3, 1, 3, 2, 1, 3, 1, 3, 2, 2, 2, 1, 3, 2, 2, 2, 1, 3, 1, 3, 2, 1, 3, 1, 3, 2, 2, 2, 1, 3, 1, 3, 2, 1, 3, 1, 3, 2, 2
Offset: 1
Keywords
Links
- Michel Dekking, Morphic words, Beatty sequences and integer images of the Fibonacci language, Theoretical Computer Science 809, 407-417 (2020).
Programs
-
Python
from math import isqrt def A332789(n): return isqrt(isqrt(m:=(n+1)**2<<1)**2<<1)-isqrt(isqrt(m-(n<<2)-2)**2<<1) # Chai Wah Wu, Aug 29 2022
Comments