OFFSET
1,2
LINKS
A. E. Frid, Prefix palindromic length of the Thue-Morse word, arXiv:1906.09392 [cs.DM] (2019).
Index entries for linear recurrences with constant coefficients, signature (1,0,16,-16).
FORMULA
a(n+3) = 16*a(n) - 6.
From Stefano Spezia, Apr 17 2023: (Start)
G.f.: x*(1 + x + 4*x^2 - 12*x^3)/((1 - x)*(1 - 16*x^3)).
a(n) = a(n-1) + 16*a(n-3) - 16*a(n-4) for n > 4. (End)
PROG
(PARI) a(n)=if(n<=3, [1, 2, 6][n], 16*a(n-3)-6); \\ Joerg Arndt, Aug 27 2019
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Anna Frid, Aug 27 2019
STATUS
approved