login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A347346 Smallest palindrome ending with n or 0 if n is a multiple of 10. 2
1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 11, 212, 313, 414, 515, 616, 717, 818, 919, 0, 121, 22, 323, 424, 525, 626, 727, 828, 929, 0, 131, 232, 33, 434, 535, 636, 737, 838, 939, 0, 141, 242, 343, 44, 545, 646, 747, 848, 949, 0, 151, 252, 353, 454, 55, 656, 757, 858, 959 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
If n is not a multiple of 10, then a(n) = A082216(A004086(n)).
PROG
(Python)
def A347346(n):
if n % 10 == 0:
return 0
s = str(n)
if s == s[::-1]:
return n
for i in range(1, len(s)):
if s[:-i]== s[-i-1::-1]:
return int(s[:-i-1:-1]+s)
CROSSREFS
Sequence in context: A080434 A062567 A069554 * A020485 A083116 A084044
KEYWORD
nonn,base,look
AUTHOR
Chai Wah Wu, Aug 27 2021
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 16:34 EDT 2024. Contains 371961 sequences. (Running on oeis4.)