OFFSET
1
COMMENTS
Below, w* denotes the reversal of a word w, and "sequence" and "word" are interchangable. An infinite word is palindromic if it has infinitely many initial subwords w such that w = w*.
Many infinite palindromic words (a(1),a(2),...) are determined by an initial word w and a midword sequence (m(1),m(2),...) of palindromes, as follows: for given w of length k, take w(1) = w = (a(1),a(2),...,a(k)). Form the palindrome w(2) = w(1)m(1)w(1)* by concatenating w(1), m(1), and w(1)*. Continue inductively; i.e., w(n+1) = w(n)m(n)w(n)* for all n >= 1. Examples follow:
initial word midword sequence inf. palindr. word |w(n)|
As a sort of (obvious) converse of the above method for constructing infinite palindromic words, every such word is determined by an initial segment w(1) and a midword sequence (m(n)), where terms of the latter may be the empty word.
LINKS
Clark Kimberling, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 1 - A260393(n).
EXAMPLE
w(1) = 10, the initial word.
w(2) = 10101 ( = 10+1+01, where + = concatenation)
w(3) = 10101010101 = w(2)+0+w(2)*
w(4) = w(3)+1+w(3)*
MATHEMATICA
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Jul 31 2015
STATUS
approved