At right is a flowchart for Roe's algorithm for computing R(n,m).
In this flow chart let n > 2 be an integer and let
w, v_{2}, ..., v_{n1} be elements
of the free abelian group Z^{n}
with the usual Euclidean inner product, where, in particular:
 v_{2} = (1, 1, 1, 0, ..., 0)
 v_{3} = (1, 1, 1, 1, 0, ..., 0)
 ...
 v_{n1} = (1, 1, 1, ..., 1)
Also, for any element x of Z^{n},
perm(x) means to put the entries of x in nonincreasing
order, and rect(x) means to replace any negative entry of x by 0.

And here is a web form that implements this algorithm for computing R(n,m) (and other things),
based on values of n and m that you enter:


