login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A377191
Smallest number of digits that must be changed in n to obtain a palindrome (without changing the first digit to 0).
1
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0
OFFSET
0,1011
COMMENTS
The sequence is unbounded, with a(n) = k first occurring at n = A377192(k).
FORMULA
a(A002113(n)) = 0, a(A029742(n)) > 0.
a(n) = 0 iff A136522(n) = 1, a(n) > 0 iff A136522(n) = 0.
EXAMPLE
a(12) = 1 because 12 is not a palindrome, but changing 1 digit appropriately (either the first or second in this case) yields a palindrome.
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Franz Vrabec, Oct 19 2024
STATUS
approved