The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A347400 Lexicographically earliest sequence of distinct terms > 0 such that concatenating n to a(n) forms a palindrome in base 10. 2
1, 2, 3, 4, 5, 6, 7, 8, 9, 101, 11, 21, 31, 41, 51, 61, 71, 81, 91, 102, 12, 22, 32, 42, 52, 62, 72, 82, 92, 103, 13, 23, 33, 43, 53, 63, 73, 83, 93, 104, 14, 24, 34, 44, 54, 64, 74, 84, 94, 105, 15, 25, 35, 45, 55, 65, 75, 85, 95, 106, 16, 26, 36, 46, 56, 66, 76, 86, 96, 107, 17, 27, 37, 47, 57 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
For n = 8 we have a(8) = 8 and 88 is a palindrome in base 10;
for n = 9 we have a(9) = 9 and 99 is a palindrome in base 10;
for n = 10 we have a(10) = 101 and 10101 is a palindrome in base 10;
for n = 11 we have a(11) = 11 and 1111 is a palindrome in base 10;
for n = 12 we have a(12) = 21 and 1221 is a palindrome in base 10; etc.
PROG
(Python)
def ispal(s): return s == s[::-1]
def aupton(terms):
alst, seen = [1], {1}
for n in range(2, terms+1):
an = 1
while an in seen or not ispal(str(n) + str(an)): an += 1
alst.append(an); seen.add(an)
return alst
print(aupton(200)) # Michael S. Branicky, Aug 30 2021
CROSSREFS
Sequence in context: A080436 A135295 A122625 * A056544 A082216 A052426
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Carole Dubois, Aug 30 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 June 6 22:00 EDT 2024. Contains 373134 sequences. (Running on oeis4.)