Abstract

John Conway invented a digital game called RATS [1], an acronym for Reverse, Add, Then Sort. A game of RATS produces a sequence of positive integers. The decimal digits of each positive integer in the sequence are all nonzero and in nondecreasing order. The first number in a RATS sequence is a positive integer whose decimal digits are all nonzero and in nondecreasing order. To produce the (i + 1)st number in a RATS sequence from the i number, for i ≥ 1, reverse the digits of the ith number, add this number to the ith number, delete the zero digits in the sum, and then sort the remaining digits of the sum in nondecreasing order. The resulting sequence of positive integers is the RATS sequence for the first number.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.