This problem was suggested by Lorenzo Gianferrari Pini and Radu-Alexandru Todor - thanks!
Let be a length vector and be an matrix. We seek to compute the quadratic form .
Assume is equally spaced between and , e.g., for , we have
The matrix is generated in the following manner:
Let be a natural number and define a vector that is equally spaced between and , i.e., for . The values of will be taken from the vector in the following manner:
We are given a sequence , with each being a vector of natural numbers. Given two such vectors, define as the binary vector of length that has 1s in the entries that are equal in and 0s in the other entries. Let be the natural number whose binary representation is , where the least significant bit is on index 0. For example, if
Then
And
= (since the vector stands for the binary representation 1010).
Now define .
So one can think of as taking on a value from a fixed list of values based on the "similarity" between and .
The values of the 's are chosen pseudo-randomly using the formula
For example, if , then
Your goal: Find (rounded to three decimals) for .
A bonus "*" will be given for finding (rounded to three decimals) for .