login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A345361
Numbers that are not palindromes even after removing trailing zeros and are divisible by their reverses.
0
510, 540, 810, 2100, 4200, 5100, 5200, 5400, 5610, 5700, 5940, 6300, 8100, 8400, 8712, 8910, 9801, 21000, 23100, 27000, 42000, 46200, 51000, 51510, 52000, 52200, 52800, 54000, 54540, 56100, 56610, 57000, 57200, 59400, 59940, 63000, 65340, 69300, 81000, 81810, 84000, 87120
OFFSET
1,1
COMMENTS
Palindromes with or without trailing zeros are trivially divisible their reverses.
If k is in the sequence then 10*k is in the sequence. - David A. Corneth, Jun 16 2021
EXAMPLE
510 is divisible by its reverse 15. Thus, 510 is in this sequence.
PROG
(Python)
def pal(s): return s == s[::-1]
def rmz(s): return s.strip('0')
def ok(n): s = str(n); return not (pal(s) or pal(rmz(s)) or n%int(s[::-1]))
print(list(filter(ok, range(82000)))) # Michael S. Branicky, Jun 16 2021
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Tanya Khovanova, Jun 16 2021
STATUS
approved