A302840 Lexicographically earliest sequence of distinct positive terms such that any n > 0, A065359(a(n)) <= A065368(a(n+1)).
1, 2, 3, 4, 5, 10, 6, 8, 7, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 21, 23, 26, 24, 25, 29, 38, 27, 28, 37, 41, 31, 45, 32, 35, 36, 40, 30, 44, 39, 46, 34, 42, 33, 47, 43, 48, 49, 50, 51, 52, 53, 74, 55, 65, 82, 73, 77, 83, 86, 90, 56, 59, 63, 64, 81
Offset: 1
Examples
The first terms, alongside their alternate digital sums in bases 2 and 3, are: n a(n) s2(a(n)) s3(a(n)) -- ---- -------- -------- 1 1 1 1 2 2 -1 2 3 3 0 -1 4 4 1 0 5 5 2 1 6 10 -2 2 7 6 0 -2 8 8 -1 0 9 7 1 -1 10 9 0 1 11 11 -1 3 12 12 0 0 13 13 1 1 14 14 -1 2 15 15 0 -1 16 16 1 0 17 17 2 1 18 18 0 2 19 19 1 3 20 20 2 4
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..10000
- Rémy Sigrist, Colored scatterplot of the first 25000 terms (where the color is function of A065368(a(n)))
- Rémy Sigrist, PARI program for A302840
- Index entries for sequences related to digital root, sum, etc.
Programs
-
PARI
\\ See Links section.
Comments