A379999 Number of longest sequences over {0,1,...,n-1} containing no two consecutive blocks with the same average.
1, 2, 8, 6, 38, 2, 12, 8, 2
Offset: 1
Examples
For 1 <= n <= 4, the following sequences are counted: n | longest sequences --+----------------------------------------------------- 1 | 0 2 | 010, 101 3 | 010, 012, 020, 101, 121, 202, 210, 212 4 | 0203202, 1310131, 1310313, 2023020, 2023202, 3130131
Comments