HF RL Explorer

construct/mc hadamard

construct/mc hadamard: a task in MathConstructOptimize-Envs-harbor (Harbor dataset). Find two sequences x 0..42 and y 0..42 with entries in {-1, +1} (a Legendre pair of length 43) such that (a) sum(x) = 1 and sum(y) = 1, and (b) for every k = 1..21: sum {i=0}^{42} x i x (i+k) mod 43 + sum…

The task

Find two sequences x[0..42] and y[0..42] with entries in {-1, +1} (a Legendre pair of length 43) such that (a) sum(x) = 1 and sum(y) = 1, and (b) for every k = 1..21: sum_{i=0}^{42} x[i]*x[(i+k) mod 43] + sum_{i=0}^{42} y[i]*y[(i+k) mod 43] = -2.

Part of amphora/MathConstructOptimize-Envs-harbor.