1,9

The first occurrence of 0 happens at n = 919.

Table of n, a(n) for n=1..96.

a(11) = 11, 11 + 11 = 22; a(12) = 99, 99 + 12 = 111; etc.

(PARI) ispal(n) = eval(concat(Vecrev(Str(n)))) == n;

nextpal(k) = k++; while(! ispal(k), k++); k;

a(n) = {m = 1; while (! ispal(n+m), m = nextpal(m)); m; } \\ Michel Marcus, Jul 24 2014

Cf. A082273, A084843.

Sequence in context: A012900 A009288 A322513 * A107049 A295166 A285649

Adjacent sequences: A082269 A082270 A082271 * A082273 A082274 A082275

nonn,base

Amarnath Murthy, Apr 13 2003

Edited by Patrick De Geest, Jun 08 2003

approved