OFFSET
10,1
COMMENTS
a(palindrome) = 0. a(n) = a(R(n)).
LINKS
G. C. Greubel, Table of n, a(n) for n = 10..1000
FORMULA
When n has two digits a(n)= 81*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)/11 = 81.
MATHEMATICA
Abs[Table[(FromDigits[Join[IntegerDigits[n], Reverse[IntegerDigits[n]]]] - FromDigits[Join[Reverse[IntegerDigits[n]], IntegerDigits[n]]])/11, {n, 10, 60}]] (* G. C. Greubel, Sep 06 2017 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Aug 09 2005
STATUS
approved