login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A302840
Lexicographically earliest sequence of distinct positive terms such that any n > 0, A065359(a(n)) <= A065368(a(n+1)).
2
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,2
COMMENTS
See A302839 for a sequence with digital sums instead of alternate digital sums.
EXAMPLE
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
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Apr 14 2018
STATUS
approved