A286940 Length of the word appended at the n-th step when trying to construct the earliest infinite cubefree word A282317 by appending the "incremented" longest possible subsequence A282317(0..a(n)-1) with the last term set to 1, for all n > 1.
1, 1, 1, 3, 2, 7, 15, 13, 1, 42, 39, 42, 39, 42, 28, 1, 42, 39, 42, 39, 42, 28, 1, 42, 39, 42, 39, 35, 7, 32, 7, 35, 7, 32, 7, 35, 7, 32, 4, 39, 42, 39, 42, 39, 35, 7, 32, 7, 35, 7, 32, 7, 35, 7, 32, 4, 39, 42, 39, 42, 39, 35, 7, 32, 7, 35, 7, 32, 7, 35, 7, 32, 4, 28, 1, 42, 39, 42, 39
Offset: 0
Keywords
Examples
Start with S = (0); we set a(0) = 1. Append W = S, of length a(1) = 1, to yields S = (0, 0). Now we can't append W (or even S) again, "increment" it to get W = (1) of length a(2) = 1, and S = (0, 0, 1). Append W = S, of length a(3) = 3, to yields S = (0, 0, 1, 0, 0, 1). We can't append W (or even S) again, a cube would appear at the 3rd appended digit which is already 1. So we must "increment" this (discarding all from the 3rd digit on) to get W = (0, 1) of length a(4) = 2, to yields S = (0, 0, 1, 0, 0, 1, 0, 1). If we try to append W = S we see that there is a cube ending at the penultimate digit, namely three times (0, 1, 0). So we must increase this 7th digit of S to get W = (0, 0, 1, 0, 0, 1, 1) of length a(5) = 7, and so on. The sequence starts 1, 1, 1, 3, 2, 7, 15, 13, 1, 42, 39, 42, 39, 42, 28, 1, 42, 39, 42, 39, 42, 28, /* =: A,A */ 1, 42, 39, 42, 39, 35, 7, 32, 7, 35, 7, 32, 7, 35, 7, 32, 4, /* =: 1,B */ 39, 42, 39, 42, 39, 35, 7, 32, 7, 35, 7, 32, 7, 35, 7, 32, 4, /* = 39,B */ 39, 42, 39, 42, 39, 35, 7, 32, 7, 35, 7, 32, 7, 35, 7, 32, 4, 28 /* = 39,B,28 */. Then this repeats: A,A, 1,B, 39,B, 39,B,28, /* =: C */ and again: A,A, 1,B, 39,B, 39,B',28, /* =: C' */ where B' is B with its last two elements removed. Then it continues again C, C, C', C, C, C", C, C, C', etc. I conjecture that this goes on with C, C', C"... appearing in a "ternary ruler sequence" pattern (A007949) until the length of the successively truncated B-part reaches length 0. This would be after approximately 12*10^6 terms of the sequence S.
Links
- M. F. Hasler, Table of n, a(n) for n = 0..742 (Lengths of words until the total length exceeds 2*10^4.)
Comments