login
Number of length n arrays of permutations of 0..n-1 with each element moved by -n to n places and the average of every three consecutive elements is never greater than the median of the previous three elements.
0

%I #6 Jan 15 2024 13:27:33

%S 1,2,6,14,38,127,411,1492,6478,27635,130093,695563,3762131,21947993,

%T 141325992,926081758,6469911674,48818612195

%N Number of length n arrays of permutations of 0..n-1 with each element moved by -n to n places and the average of every three consecutive elements is never greater than the median of the previous three elements.

%C Diagonal of A263736.

%e Some solutions for n=7

%e ..5....5....6....4....0....6....1....1....5....2....5....6....5....6....4....6

%e ..4....6....4....6....5....5....6....6....6....6....6....5....2....0....0....5

%e ..6....0....3....5....6....4....5....4....3....5....2....1....4....5....5....4

%e ..3....4....5....2....3....3....4....2....4....0....3....4....3....4....6....3

%e ..1....3....2....3....4....1....2....5....2....4....4....3....0....2....2....2

%e ..2....1....1....0....2....0....3....3....1....3....0....0....6....1....3....1

%e ..0....2....0....1....1....2....0....0....0....1....1....2....1....3....1....0

%Y Cf. A263736.

%K nonn

%O 1,2

%A _R. H. Hardin_, Oct 25 2015