A309151 Lexicographically earliest infinite sequence of distinct terms starting with a(1) = 1 such that, for n>1, a(n) doesn't share any digit with the cumulative sum a(1) + a(2) + a(3) + ... + a(n-1) + a(n).
1, 2, 3, 5, 4, 6, 7, 8, 9, 10, 11, 12, 14, 22, 20, 23, 24, 30, 13, 15, 16, 18, 40, 19, 17, 25, 21, 31, 27, 26, 28, 29, 32, 34, 39, 33, 35, 36, 41, 43, 37, 38, 47, 42, 44, 45, 46, 48, 49, 53, 50, 54, 52, 55, 60, 57, 58, 59, 56, 62, 63, 68, 51, 61, 65, 64, 66, 69, 67, 70, 71, 73, 83, 80, 74, 75, 72, 76, 77, 78, 79, 81, 87, 82
Offset: 1
Examples
The sequence starts with 1, 2, 3, 5, 4, 6, 7, 8, 9, 10, 11, 12, 14,... We can't assign 4 to a(4) as the cumulative sum at that stage would be 10 and a cumulative sum ending in 0 cannot be extended by any integer without infringing the rules. Thus we assign 5 to a(4) and 4 to a(5). We cannot assign 13 to a(13) as the cumulative sum would then be 91, with the digit 1 of 91 colliding with the digit 1 of 13. Thus a(13) = 14. Etc.
Links
- Carole Dubois, Table of n, a(n) for n = 1..5001
- Carole Dubois, graph
- Carole Dubois, graph for list of successive unauthorized sums
- Jean-Marc Falcoz, Conjectured table of n, a(n) for n = 1..1000
Crossrefs
Extensions
Added "infinite" and "for n>1" to definition. - N. J. A. Sloane, Jul 15 2019
Comments