OFFSET
0,11
COMMENTS
a(n) is a multiple of 9.
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
EXAMPLE
a(17) = 17 - 71 = -54.
MAPLE
a:= n-> (s-> n-parse(cat(s[-i]$i=1..length(s))))(""||n):
seq(a(n), n=0..82); # Alois P. Heinz, Jul 11 2021
MATHEMATICA
Table[n - FromDigits[Reverse[IntegerDigits[n]]], {n, 0, 82}] (* Jayanta Basu, Jul 11 2013 *)
PROG
(Haskell)
a056965 n = n - a004086 n -- Reinhard Zumkeller, Sep 17 2013
(Python)
def a(n): return n - int(str(n)[::-1]) # Osman Mustafa Quddusi, Jul 11 2021
(PARI) a(n) = n - fromdigits(Vecrev(digits(n))); \\ Michel Marcus, Dec 20 2023
CROSSREFS
KEYWORD
AUTHOR
Henry Bottomley, Jul 18 2000
STATUS
approved