Problem 932 · Medium

Beautiful Array

Build a permutation with no arithmetic-mean triple by doubling odd and even halves.

Open the interactive visualisation