Inspired by the precomputing of sums used in shared(v, v'), (5), we calculate for each i, k, k ≠ i the sum: