OFFSET
1
COMMENTS
Differs from A188187 in number of initial zeros. This sequence yields right-shift sums (introduced at A187950), and A188187 yields left-shift sums (A188014).
(a(n)) is the Sturmian sequence with slope sqrt(5)-2. This number has continued fraction expansion [0; 4,4,4, ...]. It is therefore fixed point of a morphism sigma, which can be found with the Crisp et al link: sigma is given by 0 -> 0001, 1 -> 00010. - Michel Dekking, Aug 02 2017
LINKS
D. Crisp, W. Moran, A. Pollington, P. Shiue, Substitution invariant cutting sequences, Journal de théorie des nombres de Bordeaux 5, (1993), p. 123-137.
FORMULA
a(n) = [nr+r]-[nr]-[r], where r=sqrt(5).
MATHEMATICA
PROG
(Python)
from sympy import integer_nthroot
def A188221(n): return integer_nthroot(5*(n+1)**2, 2)[0]-integer_nthroot(5*n**2, 2)[0]-2 # Chai Wah Wu, Mar 16 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Mar 24 2011
STATUS
approved