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!)
A084019 a(n) = 9's complement of n-th palindrome (A002113). 2
9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 88, 77, 66, 55, 44, 33, 22, 11, 0, 898, 888, 878, 868, 858, 848, 838, 828, 818, 808, 797, 787, 777, 767, 757, 747, 737, 727, 717, 707, 696, 686, 676, 666, 656, 646, 636, 626, 616 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Leading zeros in the 9's complement are omitted.
For palindromes of the form 10^k-1 the corresponding entry is zero. Apart from this the entries are distinct.
LINKS
EXAMPLE
The 20th palindromic number A002113(20) is 101 having 9's complement 898 (999 - 101 = 898). So a(20) = 898. - Indranil Ghosh, Jan 30 2017
PROG
(Python)
# Program for generating the b-file
def a(n):
return 10**len(str(n))-n-1
i=0
j=1
while j<=250:
if i==int(str(i)[::-1]):
print(str(j)+" "+str(a(i)))
j+=1
i+=1 # Indranil Ghosh, Jan 30 2017
CROSSREFS
Sequence in context: A023451 A109910 A307340 * A061601 A098756 A267193
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy and Meenakshi Srikanth (menakan_s(AT)yahoo.com), May 23 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:06 EDT 2024. Contains 371964 sequences. (Running on oeis4.)