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.
%I A302839 #13 Apr 15 2018 15:03:47 %S A302839 1,2,3,4,5,6,7,8,9,10,11,13,14,15,16,12,17,18,19,20,21,22,23,24,25,26, %T A302839 29,32,27,34,28,31,35,33,30,38,37,39,40,36,41,42,43,44,45,46,47,49,48, %U A302839 50,51,52,53,56,55,59,61,62,65,54,58,60,64,57,66,63,68 %N A302839 Lexicographically earliest sequence of distinct positive terms such that, for any n > 0, A000120(a(n)) <= A053735(a(n+1)). %C A302839 See A302840 for a sequence with alternate digital sums instead of digital sums. %H A302839 Rémy Sigrist, <a href="/A302839/b302839.txt">Table of n, a(n) for n = 1..10000</a> %H A302839 Rémy Sigrist, <a href="/A302839/a302839.png">Colored scatterplot of the first 10000 terms</a> (where the color is function of A053735(a(n))) %H A302839 Rémy Sigrist, <a href="/A302839/a302839.gp.txt">PARI program for A302839</a> %H A302839 <a href="/index/Di#digital">Index entries for sequences related to digital root, sum, etc.</a> %e A302839 The first terms, alongside their digital sums in bases 2 and 3, are: %e A302839 n a(n) d2(a(n)) d3(a(n)) %e A302839 -- ---- -------- -------- %e A302839 1 1 1 1 %e A302839 2 2 1 2 %e A302839 3 3 2 1 %e A302839 4 4 1 2 %e A302839 5 5 2 3 %e A302839 6 6 2 2 %e A302839 7 7 3 3 %e A302839 8 8 1 4 %e A302839 9 9 2 1 %e A302839 10 10 2 2 %e A302839 11 11 3 3 %e A302839 12 13 3 3 %e A302839 13 14 3 4 %e A302839 14 15 4 3 %e A302839 15 16 1 4 %e A302839 16 12 2 2 %e A302839 17 17 2 5 %e A302839 18 18 2 2 %e A302839 19 19 3 3 %e A302839 20 20 2 4 %o A302839 (PARI) See Links section. %Y A302839 Cf. A000120, A053735, A302840. %K A302839 nonn,base %O A302839 1,2 %A A302839 _Rémy Sigrist_, Apr 14 2018