OFFSET
1,2
COMMENTS
a(n) is a multiple of 99 for n > 4. Conjecture: The sequence has finitely many nonzero terms. (This would happen when the concatenation of two successive terms becomes a palindrome and the next term is 0.)
EXAMPLE
a(1) = 1, a(2) = 2, a(3) = |12-21| = 9, a(4) = |29-92| = 63, a(5) = |963-369| = 594, a(6) = |63594 - 49536| = 14058, a(7) = |59418018 - 81081495| = 21663477, ...
MATHEMATICA
nxt[{a_, b_}]:=Module[{id=Join[IntegerDigits[a], IntegerDigits[b]]}, {b, Abs[ FromDigits[ id]- FromDigits[Reverse[id]]]}]; Transpose[NestList[nxt, {1, 2}, 12]][[1]] (* Harvey P. Dale, Nov 30 2014 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Amarnath Murthy and Jason Earls, Jul 13 2003
EXTENSIONS
Corrected and extended by Mark Hudson (mrmarkhudson(AT)hotmail.com), Jul 23 2004
More terms from David Wasserman, Feb 11 2005
One more term (a(12)) from Harvey P. Dale, Nov 30 2014
STATUS
approved