[go: up one dir, main page]

login
A110727
Absolute({n concatenate R(n)}-{R(n) concatenate n})/11, where R(n) = digit reversal of n.
2
81, 0, 81, 162, 243, 324, 405, 486, 567, 648, 162, 81, 0, 81, 162, 243, 324, 405, 486, 567, 243, 162, 81, 0, 81, 162, 243, 324, 405, 486, 324, 243, 162, 81, 0, 81, 162, 243, 324, 405, 405, 324, 243, 162, 81, 0, 81, 162, 243, 324, 486, 405, 324, 243, 162, 81
OFFSET
10,1
COMMENTS
a(palindrome) = 0. a(n) = a(R(n)).
LINKS
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