OFFSET

0,4

COMMENTS

The "if it begins with 0 complement it" clause is required because nonzero terms in the OEIS may not begin with 0.

LINKS

Lars Blomberg, Table of n, a(n) for n = 0..9999

EXAMPLE

n=10 = 1010, longest palindromic factor is 101.

n=12 = 1100, there are two palindromic factors of length 2, namely 11 and 00, and we choose the larger, 11.

n=24 = 11000, longest palindromic factor is 000, complementing gives 111.

CROSSREFS

KEYWORD

nonn,base

AUTHOR

N. J. A. Sloane, Aug 15 2012

EXTENSIONS

More terms from Lars Blomberg, Jun 29 2014

STATUS

approved