A380000 Number of sequences over {0,1,...,n-1} containing no two consecutive blocks with the same average.
2, 7, 18, 163, 1454, 21837, 492116, 23699853, 1507394232
Offset: 1
Examples
For n = 3, the a(3) = 18 sequences are: (), 0, 1, 2, 01, 02, 10, 12, 20, 21, 010, 012, 020, 101, 121, 202, 210, 212.
Comments