OFFSET
0,2
COMMENTS
Positions of records in A377191.
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..450
Index entries for linear recurrences with constant coefficients, signature (111,-1110,1000).
FORMULA
a(n) = 10^(2*n-1) + (10^n-1)/9 - 1 for n > 0.
From Stefano Spezia, Oct 20 2024: (Start)
G.f.: 10*x*(1 - 10*x - 90*x^2)/((1 - x)*(1 - 10*x)*(1 - 100*x)).
E.g.f.: (81 - 100*exp(x) + 10*exp(10*x) + 9*exp(100*x))/90. (End)
EXAMPLE
a(2) = 1010 because 1010 is the smallest number with the property that you have to change at least 2 digits to get a palindrome.
MATHEMATICA
LinearRecurrence[{111, -1110, 1000}, {0, 10, 1010, 100110}, 20] (* Paolo Xausa, Nov 06 2024 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Franz Vrabec, Oct 19 2024
STATUS
approved