login
A344539
Lexicographically earliest sequence S of distinct positive terms such that the sum of the last k digits of S is odd, k being the rightmost digit of a(n).
4
1, 2, 11, 3, 4, 6, 5, 7, 8, 12, 9, 13, 14, 18, 15, 17, 16, 19, 21, 24, 23, 26, 28, 25, 29, 27, 31, 32, 38, 35, 33, 34, 39, 41, 37, 46, 36, 43, 44, 49, 47, 45, 48, 51, 52, 57, 53, 54, 59, 61, 58, 56, 55, 65, 64, 63, 66, 68, 71, 67, 72, 69, 73, 74, 78, 75, 77, 76, 79, 81, 84, 83, 86, 88, 85, 89, 87, 91, 92
OFFSET
1,2
COMMENTS
No term ends with zero.
EXAMPLE
a(1) = 1, k = 1, and the sum 1 is odd;
a(2) = 2, k = 2, and the sum 1 + 2 (= 3) is odd;
a(3) = 11, k = 1, and the sum is odd;
a(4) = 3, k = 3, and the sum 1 + 1 + 3 (= 5) is odd;
a(5) = 4, k = 4, and the sum 1 + 1 + 3 + 4 (= 9) is odd;
a(6) = 6, k = 6, and the sum 2 + 1 + 1 + 3 + 4 + 6 (= 17) is odd; etc.
CROSSREFS
Cf. A344540 and A344541.
Sequence in context: A341512 A276676 A077805 * A342043 A351997 A104662
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Carole Dubois, May 22 2021
STATUS
approved