The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A082272 Smallest palindrome m such that n + m (m>0) is also a palindrome, or 0 if no such number exists. 2
 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 11, 99, 9, 8, 7, 6, 5, 4, 3, 2, 1, 11, 88, 9, 8, 7, 6, 5, 4, 3, 2, 1, 11, 77, 9, 8, 7, 6, 5, 4, 3, 2, 1, 11, 66, 9, 8, 7, 6, 5, 4, 3, 2, 1, 11, 55, 9, 8, 7, 6, 5, 4, 3, 2, 1, 11, 44, 9, 8, 7, 6, 5, 4, 3, 2, 1, 11, 33, 9, 8, 7, 6, 5, 4, 3, 2, 1, 11, 22, 9, 8, 7, 6, 5, 4, 3 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,9 COMMENTS The first occurrence of 0 happens at n = 919. LINKS EXAMPLE a(11) = 11, 11 + 11 = 22; a(12) = 99, 99 + 12 = 111; etc. PROG (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 CROSSREFS Cf. A082273, A084843. Sequence in context: A012900 A009288 A322513 * A107049 A295166 A285649 Adjacent sequences:  A082269 A082270 A082271 * A082273 A082274 A082275 KEYWORD nonn,base AUTHOR Amarnath Murthy, Apr 13 2003 EXTENSIONS Edited by Patrick De Geest, Jun 08 2003 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified June 5 09:58 EDT 2020. Contains 334838 sequences. (Running on oeis4.)