|
| |
|
|
A066710
|
|
RATS: Reverse Add Then Sort the digits applied to previous term, starting with 3.
|
|
6
| |
|
|
3, 6, 12, 33, 66, 123, 444, 888, 1677, 3489, 12333, 44556, 111, 222, 444, 888, 1677, 3489, 12333, 44556, 111, 222, 444, 888, 1677, 3489, 12333, 44556, 111, 222, 444, 888, 1677, 3489, 12333, 44556, 111, 222, 444, 888, 1677, 3489, 12333
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,1
|
|
|
REFERENCES
| R. K. Guy, Conway's RATS and other reversals, Amer. Math. Monthly, 96 (1989), 425-428.
|
|
|
FORMULA
| Let a(n) = k, form m by Reversing the digits of k, Add m to k Then Sort the digits of the sum into increasing order to get a(n+1).
Periodic with period 8.
|
|
|
EXAMPLE
| 668 -> 668 + 866 = 1534 -> 1345.
|
|
|
MATHEMATICA
| f[k_] := Module[{m = FromDigits[Reverse[IntegerDigits[k]]]}, FromDigits[Sort[IntegerDigits[k + m]]]]; NestList[f, 3, 50] (* From Harvey P. Dale, Jan 18 2011 *)
|
|
|
CROSSREFS
| Cf. A004000, A036839, A066711.
Sequence in context: A025208 A049941 A026079 * A033648 A102972 A075209
Adjacent sequences: A066707 A066708 A066709 * A066711 A066712 A066713
|
|
|
KEYWORD
| nonn,base
|
|
|
AUTHOR
| N. J. A. Sloane (njas(AT)research.att.com), Jan 19 2002
|
| |
|
|