OFFSET
1,2
COMMENTS
Negative palindromes are not allowed. After 50000 terms, the smallest unused integers are 964, 1020, 1029, 1031, 1038, 1041, 1047, 1051, ... and the largest used is 173410. The largest palindrome produced so far is 309903. Is the sequence a permutation of the integers > 0?
a(63411) = 964. Rémy Sigrist's comment in A329544 shows that terms in A104444 are not in the sequence. Conjecture: Sequence is a permutation of positive integers not in A104444. - Chai Wah Wu, Dec 11 2019
LINKS
Jean-Marc Falcoz, Table of n, a(n) for n = 1..49999
EXAMPLE
The sequence starts with 1, smallest positive integer.
1 + 2 = 3 (palindrome)
1 + 2 - 3 = 0 (palindrome)
1 + 2 - 3 + 4 = 1 (palindrome)
1 + 2 - 3 + 4 + 18 = 22 (palindrome)
1 + 2 - 3 + 4 + 18 - 11 = 11 (palindrome)
1 + 2 - 3 + 4 + 18 - 11 - 5 = 6 (palindrome)
1 + 2 - 3 + 4 + 18 - 11 - 5 + 16 = 22 (palindrome), etc.
PROG
(PARI) A329545_vec(N, u=1, U, a, s=2, d)={vector(N, n, a=u; while(bittest(U, a-u)|| Vecrev(d=digits(s+(-1)^a*a))!=d|| (a>s&&bittest(a, 0)), a++); s+=(-1)^a*a; U+=1<<(a-u); while(bittest(U, 0), U>>=1; u++); a)} \\ M. F. Hasler, Nov 16 2019
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Jean-Marc Falcoz, Nov 16 2019
STATUS
approved