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!)
A082216 Smallest palindrome beginning with n. 9
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 101, 11, 121, 131, 141, 151, 161, 171, 181, 191, 202, 212, 22, 232, 242, 252, 262, 272, 282, 292, 303, 313, 323, 33, 343, 353, 363, 373, 383, 393, 404, 414, 424, 434, 44, 454, 464, 474, 484, 494, 505 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(A002113(n)) = A002113(n). - Chai Wah Wu, Apr 13 2021
PROG
(Python)
def A082216(n):
s = str(n)
t = s[::-1]
if s == t:
return n
for i in range(1, len(s)):
if s[i:] == t[:-i]:
return int(s+t[-i:]) # Chai Wah Wu, Apr 13 2021
CROSSREFS
Sequence in context: A122625 A347400 A056544 * A052426 A240237 A056142
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Apr 08 2003
EXTENSIONS
Corrected by T. D. Noe, Mar 10 2011
a(0) added by Chai Wah Wu, Apr 14 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 July 14 10:56 EDT 2024. Contains 374318 sequences. (Running on oeis4.)