cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A079320 CATS sequence: cube-add-then-sort variation of RATS (reverse, add then sort) sequence.

This page as a plain text file.
%I A079320 #20 Mar 29 2025 18:15:54
%S A079320 1,3,68,13,222,35,25,378,11,1234,147,122,2578,339,1124,349,558,6788,
%T A079320 28,2289,167,1129,13488,1556,1267,1179,1289,12448,237,22289,238,3579,
%U A079320 33389,1249,24669,569,1459,35589,446,26689,1347,5579,22588,1179,23789,1378
%N A079320 CATS sequence: cube-add-then-sort variation of RATS (reverse, add then sort) sequence.
%H A079320 Harvey P. Dale and Indranil Ghosh, <a href="/A079320/b079320.txt">Table of n, a(n) for n = 2..20000</a> (terms 2..1000 from Harvey P. Dale)
%H A079320 M. J. Halm, <a href="http://untilheaven.tripod.com/id112.htm">Sequences</a>
%F A079320 a(n) = sort_digits(n^3 + n).
%e A079320 a(8)= 25 because 8^3 + 8 = 512 + 8 = 520, sort(520) = 25.
%t A079320 Array[FromDigits[Sort[IntegerDigits[#^3+#]]]&,50,2] (* _Harvey P. Dale_, Feb 28 2013 *)
%o A079320 (Python)
%o A079320 def A079320(n):
%o A079320     x=str(n+n**3)
%o A079320     return int("".join(sorted(x))) # _Indranil Ghosh_, Jan 29 2017
%Y A079320 Cf. A004000.
%K A079320 nonn,base
%O A079320 2,2
%A A079320 _Michael Joseph Halm_, Feb 13 2003