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