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”).

A351406
For all a(2n) the cumulative sum of the odd digits used so far in the sequence [including a(2n)] is twice the cumulative sum of the even digits used so far in the sequence [including a(2n)]. This is the lexicographically earliest sequence of distinct numbers >= 0 with this property.
2
0, 123, 1, 23, 2, 13, 3, 12, 4, 17, 5, 34, 6, 39, 7, 14, 8, 79, 9, 36, 10, 32, 11, 112, 15, 114, 16, 119, 18, 159, 19, 116, 20, 31, 21, 27, 22, 35, 24, 57, 25, 47, 26, 97, 28, 1199, 29, 43, 30, 45, 33, 141, 37, 158, 38, 139, 40, 53, 41, 70, 42, 75, 44, 709, 46
OFFSET
1,2
COMMENTS
The sequence is a permutation of the nonnegative integers.
EXAMPLE
This sequence : 0, 123, 1, 23, 2, 13, 3, 12, 4, 17, 5, 34, 6, 39, 7, 14, 8, ...
Even dig. sums: 0, 2, 2, 4, 6, 6, 6, 8, 12, 12, 12, 16, 22, 22, 22, 26, 34, ...
Odd dig. sums : 0, 4, 5, 8, 8, 12, 15, 16, 16, 24, 29, 32, 32, 44, 51, 52, 52, ...
x x x x x x x x ...
We see that 4 is twice 2, 8 is twice 4, 12 is twice 6, 16 is twice 8, 24 is twice 12, etc.
CROSSREFS
KEYWORD
nonn,base,look
AUTHOR
Eric Angelini and Carole Dubois, Feb 10 2022
STATUS
approved