OFFSET
10,1
COMMENTS
a(palindrome ) = 0. a(n) = a(R(n)).
When concatenating the reversal after n the leading zeros are not dropped. - Tanya Khovanova, Jun 28 2021
LINKS
G. C. Greubel, Table of n, a(n) for n = 10..999
FORMULA
When n has two digits a(n)= 891*ABS(x-y), (Here x,y are the digits of n and ABS(n) is the absolute value of n.). - Keith Schneider, Jun 16 2007
EXAMPLE
a(12) = ABS(1221-2112) = 891.
a(10) = ABS(1001-110) = 891. - Tanya Khovanova, Jun 28 2021
MATHEMATICA
Abs[Table[FromDigits[Join[IntegerDigits[n], Reverse[IntegerDigits[n]]]] - FromDigits[Join[Reverse[IntegerDigits[n]], IntegerDigits[n]]], {n, 10, 60}]] (* G. C. Greubel, Sep 06 2017 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Aug 09 2005
EXTENSIONS
More terms from Sean A. Irvine, Feb 14 2011
STATUS
approved