OFFSET
1,2
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..1816
E. Angelini, A palindrome + 1, SeqFan list, July 21, 2015.
EXAMPLE
The concatenation of the first two terms is 12, and
12 - 1 = 11 is a palindrome, and similar for all subsequent terms:
23 - 1 = 22,
34 - 1 = 33,
...
910 - 1 = 909,
10102 - 1 = 10101,
...
9230 - 1 = 9229 is a palindrome, ...
PROG
(PARI) {S=[a=1]; for(i=1, 100, print1(a", "); for(k=1, 9e9, Vecrev(d=digits(eval(Str(a, k))-1))==d||next; setsearch(S, k)&&next; S=setunion(S, [a=k]); break))}
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Eric Angelini and M. F. Hasler, Jul 23 2015
STATUS
approved
