construct/mc hadamard
construct/mc hadamard: a task in MathConstructOptimize-Envs-harbor (Harbor dataset). Find two sequences x 0..96 and y 0..96 with entries in {-1, +1} (a Legendre pair of length 97) such that (a) sum(x) = 1 and sum(y) = 1, and (b) for every k = 1..48: sum {i=0}^{96} x i x (i+k) mod 97 + sum…
The task
Find two sequences x[0..96] and y[0..96] with entries in {-1, +1} (a Legendre pair of length 97) such that (a) sum(x) = 1 and sum(y) = 1, and (b) for every k = 1..48: sum_{i=0}^{96} x[i]*x[(i+k) mod 97] + sum_{i=0}^{96} y[i]*y[(i+k) mod 97] = -2.