login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A379999
Number of longest sequences over {0,1,...,n-1} containing no two consecutive blocks with the same average.
0
1, 2, 8, 6, 38, 2, 12, 8, 2
OFFSET
1,2
COMMENTS
a(n) is the last element of row n in A379998.
The sequences counted by a(n) have length A379914(n).
a(n) is even for all n >= 2, because each term x in a sequence can be replaced by n-1-x, giving another sequence of maximum length.
EXAMPLE
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
CROSSREFS
KEYWORD
nonn,more,new
AUTHOR
STATUS
approved