[go: up one dir, main page]

login
A110726
Absolute({n concatenate R(n)}-{ R(n) concatenate n}), R(n) = digit reversal of n.
2
891, 0, 891, 1782, 2673, 3564, 4455, 5346, 6237, 7128, 1782, 891, 0, 891, 1782, 2673, 3564, 4455, 5346, 6237, 2673, 1782, 891, 0, 891, 1782, 2673, 3564, 4455, 5346, 3564, 2673, 1782, 891, 0, 891, 1782, 2673, 3564, 4455, 4455, 3564, 2673, 1782, 891, 0, 891
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
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