construct/mc magic sequence
construct/mc magic sequence: a task in MathConstructOptimize-Envs-harbor (Harbor dataset). A magic sequence of length 28 is a sequence x 0 , x 1 , ..., x 27 of non-negative integers such that for every i in 0..27, x i equals the number of times the value i occurs in the sequence.
The task
A magic sequence of length 28 is a sequence x[0], x[1], ..., x[27] of non-negative integers such that for every i in 0..27, x[i] equals the number of times the value i occurs in the sequence.