login
A344540
Lexicographically earliest sequence S of distinct nonnegative terms such that the sum of the last k digits of S is even, k being the rightmost digit of a(n).
3
0, 2, 13, 4, 3, 5, 6, 8, 7, 9, 10, 14, 19, 15, 17, 20, 22, 24, 26, 28, 30, 16, 25, 18, 29, 23, 34, 27, 38, 33, 35, 37, 39, 40, 42, 44, 46, 48, 50, 36, 45, 43, 49, 47, 54, 53, 55, 57, 59, 60, 62, 64, 66, 68, 70, 56, 65, 58, 69, 63, 74, 67, 78, 73, 75, 77, 79, 80, 82, 84, 86, 88, 90, 76, 85, 83, 89, 87, 94
OFFSET
1,2
COMMENTS
No term ends with 1.
EXAMPLE
a(1) = 0, k = 0, and the sum 0 is even;
a(2) = 2, k = 2, and the sum 0 + 2 (= 2) is even;
a(3) = 13, k = 3, and the sum 2 + 1 + 3 (= 6) is even;
a(4) = 4, k = 4, and the sum 2 + 1 + 3 + 4 (= 10) is even;
a(5) = 3, k = 3, and the sum 4 + 3 + 5 (= 12) is even;
a(6) = 5, k = 5, and the sum 1 + 3 + 4 + 3 + 5 (= 16) is even; etc.
CROSSREFS
Cf. A344539 and A344541.
Sequence in context: A120863 A286459 A358433 * A338785 A335817 A093079
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Carole Dubois, May 22 2021
STATUS
approved