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!)
A118600 Palindromes in base 9 (written in base 9). 9
0, 1, 2, 3, 4, 5, 6, 7, 8, 11, 22, 33, 44, 55, 66, 77, 88, 101, 111, 121, 131, 141, 151, 161, 171, 181, 202, 212, 222, 232, 242, 252, 262, 272, 282, 303, 313, 323, 333, 343, 353, 363, 373, 383, 404, 414, 424, 434, 444, 454, 464, 474, 484, 505, 515, 525, 535, 545 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

LINKS

Chai Wah Wu, Table of n, a(n) for n = 1..1457

MATHEMATICA

(* get NextPalindrome from A029965 *) Select[NestList[NextPalindrome, 0, 62], Max@IntegerDigits@# < 9 &] (* Robert G. Wilson v *)

PROG

(Python)

from gmpy2 import digits

def palgenbase(l, b): # generator of palindromes in base b <=10 of length <= 2*l, written in base b

....if l > 0:

........yield 0

........for x in range(1, l+1):

............for y in range(b**(x-1), b**x):

................s = digits(y, b)

................yield int(s+s[-2::-1])

............for y in range(b**(x-1), b**x):

................s = digits(y, b)

................yield int(s+s[::-1])

A118600_list = list(palgenbase(3, 9)) # Chai Wah Wu, Dec 01 2014

CROSSREFS

Cf. A029955, A057148, A118594, A118595, A118596, A118597, A118598, A118599, A118600, A002113.

Sequence in context: A200371 A246025 A211699 * A080543 A285916 A119797

Adjacent sequences:  A118597 A118598 A118599 * A118601 A118602 A118603

KEYWORD

nonn,base

AUTHOR

Martin Renner, May 08 2006

EXTENSIONS

More terms from Robert G. Wilson v, May 09 2006

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 May 16 05:56 EDT 2022. Contains 353693 sequences. (Running on oeis4.)